Remove Method (String, Int32, String)
Collapse the table of content
Expand the table of content

CredentialCache::Remove Method (String^, Int32, String^)

 

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:
void Remove(
	String^ host,
	int port,
	String^ authenticationType
)

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 4.5
.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:
© 2016 Microsoft