Added SID_AND_ATTRIBUTES.ToString

pull/83/head
David Hall 2019-11-03 21:27:51 -07:00
parent 6669249944
commit 803b31f094
1 changed files with 4 additions and 0 deletions

View File

@ -3097,6 +3097,10 @@ namespace Vanara.PInvoke
Sid = sid;
Attributes = attributes;
}
/// <summary>Returns a <see cref="System.String"/> that represents this instance.</summary>
/// <returns>A <see cref="System.String"/> that represents this instance.</returns>
public override string ToString() => $"{(Sid.IsValidSid() ? Sid.ToString("N") : "")}:{Attributes}";
}
/// <summary>The SID_IDENTIFIER_AUTHORITY structure represents the top-level authority of a security identifier (SID).</summary>