SamlNameIdentifierClaimResource.SamlNameIdentifierClaimResource Constructor

Initializes a new instance of the SamlNameIdentifierClaimResource class using the specified name, the domain in which the name resides, and the format the name is in.

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

public SamlNameIdentifierClaimResource (
	string name,
	string nameQualifier,
	string format
public SamlNameIdentifierClaimResource (
	String name, 
	String nameQualifier, 
	String format
public function SamlNameIdentifierClaimResource (
	name : String, 
	nameQualifier : String, 
	format : String
Not applicable.



The subject name. Sets the Name property.


The domain in which the name parameter resides. Sets the NameQualifier property.


A URI reference that represents the format that the name parameter is in. Sets the Format property.

Exception typeCondition


name is a null reference (Nothing in Visual Basic) or is Empty.

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




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


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

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

Community Additions