Partager via


ReceiveSecurityFilter.GetUnattachedTokens Method

Gets the collection of security tokens that are referenced in the SOAP message, but are not in the SOAP message.

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

Usage

'Usage
Dim context As SoapContext
Dim returnValue As IEnumerable(Of SecurityToken)
Dim receiveSecurityFilter1 As ReceiveSecurityFilter
returnValue = receiveSecurityFilter1.GetUnattachedTokens(context)

Syntax

'Declaration
Public Overridable Function GetUnattachedTokens( _
    ByVal context As SoapContext _
) As IEnumerable(Of SecurityToken)
public virtual IEnumerable<SecurityToken> GetUnattachedTokens(
    SoapContext context
);
public:
virtual IEnumerable<SecurityToken^>^ GetUnattachedTokens(
    SoapContext^ context
);
public virtual IEnumerable<SecurityToken> GetUnattachedTokens(
    SoapContext context
);
JScript does not support Generics.

Parameters

  • context
    The SoapContext that contains the WSE-specific features for the current SOAP message.

Return Value

A System.Collections.Generic.IEnumerable of type SecurityToken that contains the collection of security tokens that are referenced in the SOAP message, but are not in it.

Remarks

The default implementation returns null.

An example of an unattached security token is when SecurityContextToken security tokens are cached by the client and the Web service and then referenced in the messages. The SecurityContextToken security token is not added or attached to the SOAP message - just a reference is.

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

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