







![]() ![]() |
DotRas SDK Documentation |
RasEntry..::..UpdateCredentials Method (NetworkCredential) |
RasEntry Class See Also Send Feedback |
![]() |
Updates the user credentials for the entry.
Namespace: DotRas
Assembly: DotRas (in DotRas.dll) Version: 1.3.5166.33435 (1.3.0.0)
Syntax
C# |
---|
public bool UpdateCredentials( NetworkCredential value ) |
Visual Basic |
---|
Public Function UpdateCredentials ( value As NetworkCredential ) As Boolean |
Visual C++ |
---|
public: bool UpdateCredentials( NetworkCredential^ value ) |
F# |
---|
member UpdateCredentials : value : NetworkCredential -> bool |
Parameters
- value
- Type: System.Net..::..NetworkCredential
An NetworkCredential object containing user credentials.
Return Value
Type: Booleantrue if the operation was successful, otherwise false.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | value is a null reference (Nothing in Visual Basic). |
System..::..InvalidOperationException | The entry is not associated with a phone book. |
System..::..UnauthorizedAccessException | The caller does not have the required permission to perform the action requested. |