RasDialDialog Class

DotRas SDK

Collapse image Expand Image Copy image CopyHover image
Prompts the user to dial a phone book entry. This class cannot be inherited.

Namespace: DotRas
Assembly: DotRas (in DotRas.dll) Version: 1.3.5166.33435 (1.3.0.0)

Syntax

C#
public sealed class RasDialDialog : RasCommonDialog
Visual Basic
Public NotInheritable Class RasDialDialog
	Inherits RasCommonDialog
Visual C++
public ref class RasDialDialog sealed : public RasCommonDialog
F#
[<SealedAttribute>]
type RasDialDialog =  
    class
        inherit RasCommonDialog
    end

Examples

The following example shows how to use the RasDialDialog component to display a user interface to dial a specific connection.
C# Copy imageCopy
using (RasDialDialog dialog = new RasDialDialog())
{
    dialog.EntryName = "VPN Connection";
    dialog.PhoneBookPath = RasPhoneBook.GetPhoneBookPath(RasPhoneBookType.AllUsers);
    if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
    {
        // The entry has connected successfully.
    }
}
Visual Basic Copy imageCopy
Dim dialog As RasDialDialog
Try
    dialog = New RasDialDialog
    dialog.EntryName = "VPN Connection"
    dialog.PhoneBookPath = RasPhoneBook.GetPhoneBookPath(RasPhoneBookType.AllUsers)
    If (dialog.ShowDialog() = System.Windows.Forms.DialogResult.OK) Then
        ' The entry has connected successfully.
    End If
Finally
    If (dialog IsNot Nothing) Then
        dialog.Dispose()
    End If
End Try

Inheritance Hierarchy

See Also