NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

CredentialCache.Add

Adds a NetworkCredential instance to the credential cache.

[Visual Basic]
Public Sub Add( _
   ByVal URIprefix As String, _
   ByVal AuthType As String, _
   ByVal cred As NetworkCredential _
)
[C#]
public void Add(
   string URIprefix,
   string AuthType,
   NetworkCredential cred
);
[C++]
public: void Add(
   String* URIprefix,
   String* AuthType,
   NetworkCredential* cred
);
[JScript]
public function Add(
   URIprefix : String,
   AuthType : String,
   cred : NetworkCredential
);

Parameters

URIprefix
The URI string that the credential applies to.
AuthType
The authentication scheme used by the host referred to in URI. Taken from the list of authentication types included in System.Net.AuthenticationTypes.
cred
The NetworkCredential instance to be added to the credential cache.

Return Value

true if the credential was successfully added to the cache; otherwise, false.

See Also

CredentialCache Class | CredentialCache Members | System.Net Namespace