SecurityTokenServiceConfiguration.DefaultTokenType 属性

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”

命名空间: Microsoft.IdentityModel.Configuration
程序集: Microsoft.IdentityModel(microsoft.identitymodel.dll 中)

用法

    Dim instance As SecurityTokenServiceConfiguration
Dim value As String

value = instance.DefaultTokenType

instance.DefaultTokenType = value

语法

声明
Public Property DefaultTokenType As String
public string DefaultTokenType { get; set; }
public:
property String^ DefaultTokenType {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_DefaultTokenType ()

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

public function set DefaultTokenType (value : String)

属性值

Returns a string that contains the default token type.

异常

异常类型 条件
ArgumentNullException

The provided value is null or empty.

ArgumentException

The provided value is not defined in the token handlers.

线程安全

此类型的任何公共静态(在 Visual Basic 中为 Shared)成员都是线程安全的。但不能保证任何实例成员是线程安全的。

平台

开发平台

Windows Server 2003, Windows Vista

Target Platforms

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

请参见

参考

SecurityTokenServiceConfiguration 类
SecurityTokenServiceConfiguration 成员
Microsoft.IdentityModel.Configuration 命名空间