Click or drag to resize

RestrictAccessAttribute Methods

The RestrictAccessAttribute type exposes the following members.

Methods
  Name Description
Public method CheckAccess Checks if the current thread principal has at least one of the Roles in order to have access.
Public method Equals Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public method GetHashCode Returns the hash code for this instance.
(Inherited from Attribute)
Public method GetType Gets the Type of the current instance.
(Inherited from Object)
Public method IsDefaultAttribute When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute)
Public method Match When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute)
Protected method MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
Public method ToString Returns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
  Name Description
Public Extension Method GetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension Method GetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also