







![]() ![]() |
DotRas SDK Documentation |
RasEntry..::..UpdateCredentials Method (NetworkCredential, Boolean) |
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, bool storeCredentialsForAllUsers ) |
Visual Basic |
---|
Public Function UpdateCredentials ( value As NetworkCredential, storeCredentialsForAllUsers As Boolean ) As Boolean |
Visual C++ |
---|
public: bool UpdateCredentials( NetworkCredential^ value, bool storeCredentialsForAllUsers ) |
F# |
---|
member UpdateCredentials : value : NetworkCredential * storeCredentialsForAllUsers : bool -> bool |
Parameters
- value
- Type: System.Net..::..NetworkCredential
An NetworkCredential object containing user credentials.
- storeCredentialsForAllUsers
- Type: System..::..Boolean
true if the credentials should be stored for all users, otherwise false.
Return Value
Type: Booleantrue if the operation was successful, otherwise false.
Remarks
Windows XP and later: This method is supported.
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. |