BinarySecurityToken.EncodingType Property

Gets or sets the XML encoding type of the security token.

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

Usage

'Usage
Dim binarySecurityToken1 As BinarySecurityToken

Dim returnValue As String
returnValue = binarySecurityToken1.EncodingType

Dim sampleValue As String
binarySecurityToken1.EncodingType = sampleValue

Syntax

'Declaration
Public Property EncodingType() As String
public string EncodingType {get; set;}
public:
property String^ EncodingType {
    String^ get();
    void set(String^ value);
}
public System.String get_EncodingType();
public void set_EncodingType(System.String);
public function get EncodingType() : String;
public function set EncodingType(String);

Property Value

The XML encoding type of the security token.

Exceptions

Exception type Condition
ArgumentNullException

EncodingType is set to null.

SecurityFormatException

EncodingType is set to a value other than Base64Encoding.

Remarks

The EncodingType represents an XML attribute that names the way the binary data (stored in the RawData property) in the token is encoded into an XML string.

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

BinarySecurityToken Class
BinarySecurityToken Members
Microsoft.Web.Services3.Security.Tokens Namespace
Base64Encoding