System.Security.AccessControl.ObjectSecurity.GetSecurityDescriptorBinaryForm C# (CSharp) Méthode

GetSecurityDescriptorBinaryForm() public méthode

public GetSecurityDescriptorBinaryForm ( ) : byte[]
Résultat byte[]
        public byte[] GetSecurityDescriptorBinaryForm() { throw null; }
        public string GetSecurityDescriptorSddlForm(System.Security.AccessControl.AccessControlSections includeSections) { throw null; }

Usage Example

 public NativeSecurityAttributes(ObjectSecurity managedSecurityObject, bool inheritHandle)
 {
   length = Marshal.SizeOf(typeof(NativeSecurityAttributes));
   byte[] binarySecurityDescriptor = managedSecurityObject.GetSecurityDescriptorBinaryForm();
   securityDescriptor = Marshal.AllocHGlobal(binarySecurityDescriptor.Length);
   Marshal.Copy(binarySecurityDescriptor, 0, securityDescriptor, binarySecurityDescriptor.Length);
   this.inheritHandle = inheritHandle;
 }
All Usage Examples Of System.Security.AccessControl.ObjectSecurity::GetSecurityDescriptorBinaryForm