/// <summary> /// Constructor from an unmanged buffer. /// </summary> /// <param name="sid">A safe buffer containing a valid SID.</param> /// <exception cref="NtException">Thrown if the buffer is not valid.</exception> public Sid(SafeBuffer sid) : this(sid.DangerousGetHandle()) { }