Επεξεργασία

Κοινή χρήση μέσω


AccessControlEntry Constructors

Definition

Initializes a new instance of the AccessControlEntry class.

Overloads

AccessControlEntry()

Initializes a new instance of the AccessControlEntry class that specifies neither a trustee nor set of rights to apply.

AccessControlEntry(Trustee)

Initializes a new instance of the AccessControlEntry class that specifies a trustee to which rights are granted or denied.

AccessControlEntry(Trustee, GenericAccessRights, StandardAccessRights, AccessControlEntryType)

Initializes a new instance of the AccessControlEntry class that specifies a trustee, rights to assign, and whether to grant or deny these rights.

AccessControlEntry()

Initializes a new instance of the AccessControlEntry class that specifies neither a trustee nor set of rights to apply.

public:
 AccessControlEntry();
public AccessControlEntry ();
Public Sub New ()

Remarks

Set the Trustee property and at least one of the GenericAccessRights, StandardAccessRights, or CustomAccessRights properties before using this AccessControlEntry instance to set access rights for a trustee.

You can optionally set the EntryType property, though it defaults to Allow if you choose not to do so.

Applies to

AccessControlEntry(Trustee)

Initializes a new instance of the AccessControlEntry class that specifies a trustee to which rights are granted or denied.

public:
 AccessControlEntry(System::Messaging::Trustee ^ trustee);
public AccessControlEntry (System.Messaging.Trustee trustee);
new System.Messaging.AccessControlEntry : System.Messaging.Trustee -> System.Messaging.AccessControlEntry
Public Sub New (trustee As Trustee)

Parameters

trustee
Trustee

A Trustee that specifies a user, group, computer, domain, or alias.

Exceptions

The trustee parameter is null.

Remarks

Set the EntryType property and at least one of the GenericAccessRights, StandardAccessRights, or CustomAccessRights properties before using this AccessControlEntry instance to set access rights for a trustee.

See also

Applies to

AccessControlEntry(Trustee, GenericAccessRights, StandardAccessRights, AccessControlEntryType)

Initializes a new instance of the AccessControlEntry class that specifies a trustee, rights to assign, and whether to grant or deny these rights.

public:
 AccessControlEntry(System::Messaging::Trustee ^ trustee, System::Messaging::GenericAccessRights genericAccessRights, System::Messaging::StandardAccessRights standardAccessRights, System::Messaging::AccessControlEntryType entryType);
public AccessControlEntry (System.Messaging.Trustee trustee, System.Messaging.GenericAccessRights genericAccessRights, System.Messaging.StandardAccessRights standardAccessRights, System.Messaging.AccessControlEntryType entryType);
new System.Messaging.AccessControlEntry : System.Messaging.Trustee * System.Messaging.GenericAccessRights * System.Messaging.StandardAccessRights * System.Messaging.AccessControlEntryType -> System.Messaging.AccessControlEntry
Public Sub New (trustee As Trustee, genericAccessRights As GenericAccessRights, standardAccessRights As StandardAccessRights, entryType As AccessControlEntryType)

Parameters

trustee
Trustee

A Trustee that specifies a user, group, computer, domain, or alias.

genericAccessRights
GenericAccessRights

A bitwise combination of the GenericAccessRights values.

standardAccessRights
StandardAccessRights

A bitwise combination of the StandardAccessRights values.

entryType
AccessControlEntryType

One of the AccessControlEntryType values, which specifies whether to allow, deny, set, or revoke the specified rights.

Exceptions

The trustee parameter is null.

The genericAccessRights, standardAccessRights, or entryType parameters are not valid enumeration values.

Remarks

This overload of the constructor sets the CustomAccessRights property to a bitwise combination of the genericAccessRights and standardAccessRights parameters you specify.

Applies to