RasEntry.UpdateCredentials Method (NetworkCredential, Boolean)

DotRas SDK

Collapse image Expand Image Copy image CopyHover image
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: Boolean
true 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.

See Also