Partager via


CredentialSet.SetServiceToken Generic Method

Specifies or replaces the Web service's security credentials.

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.SetServiceToken(Of SomeType1)(token)

Syntax

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

Parameters

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

Return Value

A SecurityToken that represents the security credentials of a Web service 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