CredentialCache.Remove Method (String, Int32, String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Deletes a NetworkCredential instance from the cache if it is associated with the specified host, port, and authentication protocol.

Namespace:   System.Net
Assembly:  System (in System.dll)

Public Sub Remove (
	host As String,
	port As Integer,
	authenticationType As String
)

Parameters

host
Type: System.String

A String that identifies the host computer.

port
Type: System.Int32

A Int32 that specifies the port to connect to on host.

authenticationType
Type: System.String

A String that identifies the authentication scheme used when connecting to host. See Remarks.

This method removes a NetworkCredential instance from the CredentialCache if the specified host, port, and authentication protocol match those associated with the credential. Multiple calls to the Remove method for the same NetworkCredential have no effect.

If authType is null or uriPrefix is null, or no matching credential is found in the cache, this method does nothing.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.1
Windows Phone
Available since 8.1
Return to top
Show: