Partager via


CredentialSet.SetClientToken Generic Method

Specifies or replaces the security credentials of the Web service client.

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

Usage

'Usage
Public Class SomeType1
    Inherits SecurityToken
End Class
Dim token As SomeType1
Dim returnValue As SomeType1
Dim credentialSet1 As CredentialSet
returnValue = credentialSet1.SetClientToken(Of SomeType1)(token)

Syntax

'Declaration
Public Function SetClientToken(Of TSecurityToken As SecurityToken)( _
    ByVal token As TSecurityToken _
) As TSecurityToken
public TSecurityToken SetClientToken<TSecurityToken>(
    TSecurityToken token
)
    where TSecurityToken : SecurityToken;
public:
generic<typename TSecurityToken>
TSecurityToken SetClientToken(
    TSecurityToken token
);
public TSecurityToken SetClientToken<TSecurityToken>(
    TSecurityToken token
);
    where TSecurityToken extends SecurityToken
JScript does not support Generics.

Parameters

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

Return Value

A SecurityToken that represents the security credentials of the Web service client that are being replaced; otherwise null.

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

CredentialSet Class
CredentialSet Members
Microsoft.Web.Services3.Security Namespace