CredentialContext.SetCredentials Method (CredentialSet, String)

Specifies or replaces the security credentials used to secure parts of the SOAP message for the specified recipient 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 actor As String
Dim returnValue As CredentialSet
Dim credentialContext1 As CredentialContext
returnValue = credentialContext1.SetCredentials(credentials, actor)

Syntax

'Declaration
Overloads Public Function SetCredentials( _
    ByVal credentials As CredentialSet, _
    ByVal actor As String _
) As CredentialSet
public CredentialSet SetCredentials(
    CredentialSet credentials, 
    string actor
);
public:
CredentialSet^ SetCredentials(
    CredentialSet^ credentials,
    String^ actor
);
public CredentialSet SetCredentials(
    CredentialSet credentials, 
    System.String actor
);
public function SetCredentials(
     credentials : CredentialSet, 
     actor : String
) : CredentialSet;

Parameters

  • credentials
    A CredentialSet that represents the security credentials for a Web service and the Web service client.
  • actor
    The SOAP actor that represents the recipient for which to secure parts of the SOAP message.

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