Compartilhar via


SecurityToken Constructor (XmlElement, String)

Initializes a new instance of the SecurityToken class using the specified XML element and token type.

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

Usage

'Usage
Dim element As XmlElement
Dim tokenType As String
Dim securityToken1 As New SecurityToken(element, tokenType)

Syntax

'Declaration
Protected Sub New( _
    ByVal element As XmlElement, _
    ByVal tokenType As String _
)
protected SecurityToken(
    XmlElement element, 
    string tokenType
);
protected:
SecurityToken(
    XmlElement^ element, 
    String^ tokenType
);
protected SecurityToken(
    XmlElement element, 
    System.String tokenType
);
protected function SecurityToken(
     element : XmlElement, 
     tokenType : String
);

Parameters

  • element
    An XmlElement that is used to create the new security token.
  • tokenType
    The type of security token to create a new instance of.

Remarks

The element parameter is an element in a WS-Security header of a received SOAP message.

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

SecurityToken Class
SecurityToken Members
Microsoft.Web.Services3.Security.Tokens Namespace