







![]() ![]() |
DotRas SDK Documentation |
RasEntry..::..CreateDialUpEntry Method |
RasEntry Class See Also Send Feedback |
![]() |
Creates a new dial-up entry.
Namespace: DotRas
Assembly: DotRas (in DotRas.dll) Version: 1.3.5166.33435 (1.3.0.0)
Syntax
C# |
---|
public static RasEntry CreateDialUpEntry( string name, string phoneNumber, RasDevice device ) |
Visual Basic |
---|
Public Shared Function CreateDialUpEntry ( name As String, phoneNumber As String, device As RasDevice ) As RasEntry |
Visual C++ |
---|
public: static RasEntry^ CreateDialUpEntry( String^ name, String^ phoneNumber, RasDevice^ device ) |
F# |
---|
static member CreateDialUpEntry : name : string * phoneNumber : string * device : RasDevice -> RasEntry |
Parameters
- name
- Type: System..::..String
The name of the entry.
- phoneNumber
- Type: System..::..String
The phone number to dial.
- device
- Type: DotRas..::..RasDevice
Required. An RasDevice to use for connecting.
Return Value
Type: RasEntryA new RasEntry object.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentException | name or phoneNumber is an empty string or null reference (Nothing in Visual Basic). |
System..::..ArgumentNullException | device is a null reference (Nothing in Visual Basic). |