SamlSubjectStatement.SetSubject Method (SamlSubject)

 

Sets the subject of a SamlSecurityToken security token.

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

protected void SetSubject(
	SamlSubject samlSubject
)

Parameters

samlSubject
Type: System.IdentityModel.Tokens.SamlSubject

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

Exception Condition
ArgumentNullException

samlSubject is null.

Unlike the SamlSubject property, the SetSubject method can be called to set the subject of a SamlSecurityToken security token when the IsReadOnly property is true.

.NET Framework
Available since 3.0
Return to top
Show: