Added SafePSECURITY_DESCRIPTOR.ToString(SECURITY_INFO) overload

pull/250/head
dahall 2021-10-04 15:52:15 -06:00
parent 0230ccff9a
commit d0cdc29543
1 changed files with 9 additions and 1 deletions

View File

@ -4968,7 +4968,15 @@ namespace Vanara.PInvoke
/// <summary>Returns a <see cref="string"/> that represents this instance.</summary>
/// <returns>A <see cref="string"/> that represents this instance.</returns>
public override string ToString() => ConvertSecurityDescriptorToStringSecurityDescriptor(handle, defSecInfo);
public override string ToString() => ToString(defSecInfo);
/// <summary>Returns a <see cref="string"/> that represents this instance.</summary>
/// <param name="secInfo">
/// Specifies a combination of the SECURITY_INFORMATION bit flags to indicate the components of the security descriptor to include in
/// the output string.
/// </param>
/// <returns>A <see cref="string"/> that represents this instance.</returns>
public string ToString(SECURITY_INFORMATION secInfo) => ConvertSecurityDescriptorToStringSecurityDescriptor(handle, secInfo);
}
}