ResourcePermissionBaseEntry Class

 

Defines the smallest unit of a code access security permission set.

Namespace:   System.Security.Permissions
Assembly:  System (in System.dll)

System.Object
  System.Security.Permissions.ResourcePermissionBaseEntry

[<SerializableAttribute>]
type ResourcePermissionBaseEntry = class end

NameDescription
System_CAPS_pubmethodResourcePermissionBaseEntry()

Initializes a new instance of the ResourcePermissionBaseEntry class.

System_CAPS_pubmethodResourcePermissionBaseEntry(Int32, String[])

Initializes a new instance of the ResourcePermissionBaseEntry class with the specified permission access and permission access path.

NameDescription
System_CAPS_pubpropertyPermissionAccess

Gets an integer representation of the access level enumeration value.

System_CAPS_pubpropertyPermissionAccessPath

Gets an array of strings that identify the resource you are protecting.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The following example inherits from the ResourcePermissionBase class. 4 kinds of constructors are implemented. The example also provides an implementation of a class called MailslotPermissionEntry. The PermissionAccessType property is then privately set to the type of MailslotPermissionEntry. The TagNames property is set privately to "Name" and "Machine".

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1

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
Show: