RasEntry.GetCredentials Method

DotRas SDK

Collapse image Expand Image Copy image CopyHover image
Retrieves the credentials for the entry.

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

Syntax

C#
public NetworkCredential GetCredentials()
Visual Basic
Public Function GetCredentials As NetworkCredential
Visual C++
public:
NetworkCredential^ GetCredentials()
F#
member GetCredentials : unit -> NetworkCredential 

Return Value

Type: NetworkCredential
The credentials stored in the entry, otherwise a null reference (Nothing in Visual Basic) if the credentials did not exist.

Exceptions

Exception Condition
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