Gets or sets the default token type (_defaultTokenType property) used in token issuance. The string values are specified in URI format, for example, for SAML 1.1 token type following is the string value: “http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1”
Namespace: Microsoft.IdentityModel.Configuration
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As SecurityTokenServiceConfiguration
Dim value As String

value = instance.DefaultTokenType

instance.DefaultTokenType = value

Syntax

Visual Basic
Public Property DefaultTokenType As String
C#
public string DefaultTokenType { get; set; }
C++
public:
property String^ DefaultTokenType {
		String^ get ();
		void set (String^ value);
}
J#
/** @property */
public String get_DefaultTokenType ()

/** @property */
public void set_DefaultTokenType (String value)
JScript
public function get DefaultTokenType () : String

public function set DefaultTokenType (value : String)

Property Value

Returns a string that contains the default token type.

Exceptions

Exception type Condition
ArgumentNullException

The provided value is null or empty.

ArgumentException

The provided value is not defined in the token handlers.

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 Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also