Disco.Services.Interop.ActiveDirectory.ADHelpers.ToBytes C# (CSharp) Method

ToBytes() static private method

static private ToBytes ( this Sid ) : byte[]
Sid this
return byte[]
        internal static byte[] ToBytes(this SecurityIdentifier Sid)
        {
            var sidBytes = new byte[Sid.BinaryLength];

            Sid.GetBinaryForm(sidBytes, 0);

            return sidBytes;
        }