Prompts the user to create or modify 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 RasEntryDialog : RasCommonDialog |
Visual Basic |
---|
Public NotInheritable Class RasEntryDialog Inherits RasCommonDialog |
Visual C++ |
---|
public ref class RasEntryDialog sealed : public RasCommonDialog |
F# |
---|
[<SealedAttribute>] type RasEntryDialog = class inherit RasCommonDialog end |
Examples
The following example shows how to modify an existing entry using the RasEntryDialog component.
C# | Copy |
---|---|
using (RasEntryDialog dialog = new RasEntryDialog()) { dialog.EntryName = "VPN Connection"; dialog.PhoneBookPath = RasPhoneBook.GetPhoneBookPath(RasPhoneBookType.AllUsers); dialog.Style = RasDialogStyle.Edit; if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { ' The entry was modified successfully. } } |
Visual Basic | Copy |
---|---|
Dim dialog As RasEntryDialog Try dialog = New RasEntryDialog dialog.EntryName = "VPN Connection" dialog.PhoneBookPath = RasPhoneBook.GetPhoneBookPath(RasPhoneBookType.AllUsers) dialog.Style = RasDialogStyle.Edit If (dialog.ShowDialog() = System.Windows.Forms.DialogResult.OK) Then ' The entry was modified successfully. End If Finally If (dialog IsNot Nothing) Then dialog.Dispose() End If End Try |
Inheritance Hierarchy
System..::..Object
System..::..MarshalByRefObject
System.ComponentModel..::..Component
System.Windows.Forms..::..CommonDialog
DotRas.Design..::..RasCommonDialog
DotRas..::..RasEntryDialog
System..::..MarshalByRefObject
System.ComponentModel..::..Component
System.Windows.Forms..::..CommonDialog
DotRas.Design..::..RasCommonDialog
DotRas..::..RasEntryDialog