Export (0) Print
Expand All

ContextItem Class

.NET Framework 4.5

Represents the auth:ContextItem element defined in the authorization extensions to WS-Trust. These extensions are defined in the WS-Federation specification.


Namespace:  System.IdentityModel.Protocols.WSTrust
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public class ContextItem

The ContextItem type exposes the following members.

Public methodContextItem(Uri)Initializes a new instance of the ContextItem class with the specified Name URI.
Public methodContextItem(Uri, String)Initializes a new instance of the ContextItem class with the specified Name URI and value.
Public methodContextItem(Uri, String, Uri)Initializes a new instance of the ContextItem class with the specified Name URI, value, and Scope URI.

Public propertyNameGets or sets the Name URI.
Public propertyScopeGets or sets the Scope URI.
Public propertyValueGets or sets the value of the context item.

Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

The auth:ContextItem element is a subelement of the auth:AdditionalContext element that is represented by the AdditionalContext class.

For more information about the element that this class represents, see the WS-Federation specification.

.NET Framework

Supported in: 4.6, 4.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft