public GetBinaryForm ( byte binaryForm, int offset ) : void | ||
binaryForm | byte | |
offset | int | |
Результат | void |
/// <summary>Returns an array of byte values that represents the information contained in this <see cref="GenericSecurityDescriptor"/> object.</summary> /// <param name="sd">The <see cref="GenericSecurityDescriptor"/> object.</param> /// <returns>The byte array into which the contents of the <see cref="GenericSecurityDescriptor"/> is marshaled.</returns> public static byte[] GetBinaryForm(this GenericSecurityDescriptor sd) { if (sd == null) { throw new ArgumentNullException(nameof(sd)); } var bin = new byte[sd.BinaryLength]; sd.GetBinaryForm(bin, 0); return(bin); }