This documentation is archived and is not being maintained.

SamlSubject.NameFormat Property

Gets or sets a URI reference that represents the format that the subject name of a SAML security token is in.

Namespace: System.IdentityModel.Tokens
Assembly: System.IdentityModel (in system.identitymodel.dll)

public string NameFormat { get; set; }
/** @property */
public String get_NameFormat ()

/** @property */
public void set_NameFormat (String value)

public function get NameFormat () : String

public function set NameFormat (value : String)

Not applicable.

Property Value

A URI reference that represents the format that the subject name of a SAML security token is in.

The NameFormat property specifies the format that the Name property is in.

Although the format used to specify a name is extensible, the following table lists the formats defined by the SAML specification.

Format

Description

EmailNamespace

A URI that states the subject of a SAML assertion is specified as an email address.

UserNameNamespace

A URI that states the subject of a SAML assertion is specified using a Windows domain account.

The NameFormat property corresponds to the Format attribute of the <saml:NameIdentifier> element that is defined in the Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) specification.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: