SamlSubjectStatement.SamlSubject Property

 

Gets or sets the subject of a SamlSecurityToken security token.

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

public SamlSubject SamlSubject { get; set; }

Property Value

Type: System.IdentityModel.Tokens.SamlSubject

A SamlSubject that identifies the subject of a SamlSecurityToken security token.

Exception Condition
InvalidOperationException

The SamlSubject property is set and the IsReadOnly property is true.

The SamlSubject property corresponds to the <saml:Subject> element that is defined in the Assertions and Protocol for the OASIS SAML specification.

.NET Framework
Available since 3.0
Return to top
Show: