Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Security.​Claims.​Claim
Assembly: System.Security.Claims
Inheritance: object → Claim
Represents a claim.
Properties
protected
byte[]
CustomSerializationData
Contains any additional data provided by a derived type.
public
string
Issuer
Gets the issuer of the claim.
public
string
OriginalIssuer
Gets the original issuer of the claim.
public
Collections.​Generic.​IDictionary<​string, string>
Properties
Gets a dictionary that contains additional properties associated with this claim.
public
ClaimsIdentity
Subject
Gets the subject of the claim.
public
string
Type
Gets the claim type of the claim.
public
string
Value
Gets the value of the claim.
public
string
ValueType
Gets the value type of the claim.
Methods
public
Claim
Clone​()
Returns a new <see cref="T:System.Security.Claims.Claim" /> object copied from this object. The new claim does not have a subject.
Returns The new claim object.
public
Claim
Clone​(ClaimsIdentity? identity)
Returns a new <see cref="T:System.Security.Claims.Claim" /> object copied from this object. The subject of the new claim is set to the specified ClaimsIdentity.
Returns The new claim object.
identity
The intended subject of the new claim.
public
string
ToString​()
Returns a string representation of this <see cref="T:System.Security.Claims.Claim" /> object.
Returns The string representation of this <see cref="T:System.Security.Claims.Claim" /> object.
public
void
WriteTo​(IO.​BinaryWriter writer)
Writes this <see cref="T:System.Security.Claims.Claim" /> to the writer.
writer
The writer to use for data storage.
protected
void
WriteTo​(IO.​BinaryWriter writer,
byte[] userData)
Writes this <see cref="T:System.Security.Claims.Claim" /> to the writer.
writer
The writer to write this claim.
userData
The user data to claim.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object