Επεξεργασία

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


CustomAce(AceType, AceFlags, Byte[]) Constructor

Definition

Initializes a new instance of the CustomAce class.

public:
 CustomAce(System::Security::AccessControl::AceType type, System::Security::AccessControl::AceFlags flags, cli::array <System::Byte> ^ opaque);
public CustomAce (System.Security.AccessControl.AceType type, System.Security.AccessControl.AceFlags flags, byte[]? opaque);
public CustomAce (System.Security.AccessControl.AceType type, System.Security.AccessControl.AceFlags flags, byte[] opaque);
new System.Security.AccessControl.CustomAce : System.Security.AccessControl.AceType * System.Security.AccessControl.AceFlags * byte[] -> System.Security.AccessControl.CustomAce
Public Sub New (type As AceType, flags As AceFlags, opaque As Byte())

Parameters

type
AceType

Type of the new Access Control Entry (ACE). This value must be greater than MaxDefinedAceType.

flags
AceFlags

Flags that specify information about the inheritance, inheritance propagation, and auditing conditions for the new ACE.

opaque
Byte[]

An array of byte values that contains the data for the new ACE. This value can be null. The length of this array must not be greater than the value of the MaxOpaqueLength field, and must be a multiple of four.

Exceptions

The value of the type parameter is not greater than MaxDefinedAceType or the length of the opaque array is either greater than the value of the MaxOpaqueLength field or not a multiple of four.

Remarks

The opaque data is not cloned. The data should be cloned before calling this constructor if the caller does not trust the source of the data to not modify the data.

Applies to