Click or drag to resize

RestrictAccessAttribute Class

Represents an Attribute that can be used restrict access to a class when using role-based security.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    GSF.SecurityRestrictAccessAttribute

Namespace: GSF.Security
Assembly: GSF.Security (in GSF.Security.dll) Version: 2.4.207-beta
Syntax
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false)]
public class RestrictAccessAttribute : Attribute
View Source

The RestrictAccessAttribute type exposes the following members.

Constructors
 NameDescription
Public methodRestrictAccessAttribute Initializes a new instance of the RestrictAccessAttribute class.
Public methodRestrictAccessAttribute(String) Initializes a new instance of the RestrictAccessAttribute class.
Top
Properties
 NameDescription
Public propertyRoles Gets or sets the list of either roles the current thread principal must have in order to have access.
Public propertyTypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute)
Top
Methods
 NameDescription
Public methodCheckAccess Checks if the current thread principal has at least one of the Roles in order to have access.
Public methodEqualsReturns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute)
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 methodGetHashCodeReturns the hash code for this instance.
(Inherited from Attribute)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsDefaultAttributeWhen overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute)
Public methodMatchWhen overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also