Partager via


WebServicesClientProtocol.SetClientCredential Generic Method

Specifies the security credentials of the Web service client.

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

Usage

'Usage
Public Class SomeType1
    Inherits SecurityToken
End Class
Dim clientToken As SomeType1
Dim webServicesClientProtocol1 As WebServicesClientProtocol
webServicesClientProtocol1.SetClientCredential(Of SomeType1)(clientToken)

Syntax

'Declaration
Public Sub SetClientCredential(Of TSecurityToken As SecurityToken)( _
    ByVal clientToken As TSecurityToken _
)
public void SetClientCredential<TSecurityToken>(
    TSecurityToken clientToken
)
    where TSecurityToken : SecurityToken;
public:
generic<typename TSecurityToken>
void SetClientCredential(
    TSecurityToken clientToken
);
public void SetClientCredential<TSecurityToken>(
    TSecurityToken clientToken
);
    where TSecurityToken extends SecurityToken
In JScript, you cannot declare this method.

Parameters

  • clientToken
    A SecurityToken that represents the security credentials of the Web service client.

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

WebServicesClientProtocol Class
WebServicesClientProtocol Members
Microsoft.Web.Services3 Namespace

Other Resources

How to: Secure a Client Without Using a Policy File
How to: Secure a Client Using Mixed Policy and Code