CredentialContext.SetCredentials Method (CredentialSet)

Specifies or replaces the security credentials used to secure parts of the SOAP message for the ultimate receiver using the specified security credentials.

Namespace: Microsoft.Web.Services3
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim credentials As CredentialSet
Dim returnValue As CredentialSet
Dim credentialContext1 As CredentialContext
returnValue = credentialContext1.SetCredentials(credentials)

Syntax

'Declaration
Overloads Public Function SetCredentials( _
    ByVal credentials As CredentialSet _
) As CredentialSet
public CredentialSet SetCredentials(
    CredentialSet credentials
);
public:
CredentialSet^ SetCredentials(
    CredentialSet^ credentials
);
public CredentialSet SetCredentials(
    CredentialSet credentials
);
public function SetCredentials(
     credentials : CredentialSet
) : CredentialSet;

Parameters

  • credentials
    A CredentialSet that represents the security credentials for a Web service and the Web service client.

Return Value

A CredentialSet that represents the replaced security credentials for a Web service and the Web service client; otherwise null when no security credentials were previously specified.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

CredentialContext Class
CredentialContext Members
Microsoft.Web.Services3 Namespace