RasEntry.ClearCredentials Method (RasPreSharedKey)

DotRas SDK

Collapse image Expand Image Copy image CopyHover image
Clears the stored credentials for the entry.

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

Syntax

C#
public bool ClearCredentials(
	RasPreSharedKey key
)
Visual Basic
Public Function ClearCredentials ( 
	key As RasPreSharedKey
) As Boolean
Visual C++
public:
bool ClearCredentials(
	RasPreSharedKey key
)
F#
member ClearCredentials : 
        key : RasPreSharedKey -> bool 

Parameters

key
Type: DotRas..::..RasPreSharedKey
The pre-shared key whose value to clear.

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..::..InvalidOperationException The entry is not associated with a phone book.

See Also