Saml2NameIdentifier 构造函数

定义

初始化 Saml2NameIdentifier 类的新实例。Initializes a new instance of the Saml2NameIdentifier class.

重载

Saml2NameIdentifier(String)

用指定的名称初始化 Saml2NameIdentifier 类的新实例。Initializes a new instance of the Saml2NameIdentifier class with the specified name.

Saml2NameIdentifier(String, Uri)

用指定的名称和格式 URI 初始化 Saml2NameIdentifier 类的新实例。Initializes a new instance of the Saml2NameIdentifier class with the specified name and format URI.

Saml2NameIdentifier(String)

用指定的名称初始化 Saml2NameIdentifier 类的新实例。Initializes a new instance of the Saml2NameIdentifier class with the specified name.

public:
 Saml2NameIdentifier(System::String ^ name);
public Saml2NameIdentifier (string name);
new System.IdentityModel.Tokens.Saml2NameIdentifier : string -> System.IdentityModel.Tokens.Saml2NameIdentifier
Public Sub New (name As String)

参数

name
String

名称标识符。The name identifier.

例外

namenullname is null.

注解

Value使用由指定的标识符初始化属性 nameThe Value property is initialized with the identifier specified by name. Format 属性初始化为 nullThe Format property is initialized to null.

适用于

Saml2NameIdentifier(String, Uri)

用指定的名称和格式 URI 初始化 Saml2NameIdentifier 类的新实例。Initializes a new instance of the Saml2NameIdentifier class with the specified name and format URI.

public:
 Saml2NameIdentifier(System::String ^ name, Uri ^ format);
public Saml2NameIdentifier (string name, Uri format);
new System.IdentityModel.Tokens.Saml2NameIdentifier : string * Uri -> System.IdentityModel.Tokens.Saml2NameIdentifier
Public Sub New (name As String, format As Uri)

参数

name
String

名称标识符。The name identifier.

format
Uri

一个 Uri,用于指定标识符格式。A Uri that specifies the identifier format.

例外

namenullname is null.

尝试设置一个值的 format,该值不为 null,也不是绝对的 URI。An attempt to set format to a value that is not null and is not an absolute URI occurs.

注解

Value使用由指定的标识符初始化属性 nameThe Value property is initialized with the identifier specified by name. Format 属性初始化为指定的 URI formatThe Format property is initialized to the URI specified by format.

适用于