SafeEnum<TEnum> Class

 

Provides a version-safe object for accessing enumeration values in a data contract.

Namespace:   Microsoft.IdentityServer.PolicyModel.Configuration
Assembly:  Microsoft.IdentityServer (in Microsoft.IdentityServer.dll)

System::Object
  Microsoft.IdentityServer.PolicyModel.Configuration::SafeEnum<TEnum>

generic<typename TEnum>
where TEnum : value struct, gcnew()
public ref class SafeEnum 

Type Parameters

TEnum

The type of the enumeration.

NameDescription
System_CAPS_pubmethodSafeEnum<TEnum>(Object^, String^)

Initializes a new instance of the SafeEnum<TEnum> class.

NameDescription
System_CAPS_pubpropertyIsValid

Whether the value of the enumeration is understood.

System_CAPS_pubpropertyValue

The validated enumeration value.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

Invokes the ToString method of the enumeration datatype.(Overrides Object::ToString().)

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

Return to top

Community Additions

ADD
Show: