The ConvertSecurityDescriptorToString method converts a byte array containing a security descriptor to a string.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in microsoft.metadirectoryservicesex.dll)

Usage

Visual Basic
Dim sd As Byte()
Dim returnValue As String

returnValue = Utils.ConvertSecurityDescriptorToString(sd)

Syntax

Visual Basic
<PermissionSetAttribute(SecurityAction.Demand, Unrestricted:=True)> _
Public Shared Function ConvertSecurityDescriptorToString ( _
		sd As Byte() _
) As String
C#
[PermissionSetAttribute(SecurityAction.Demand, Unrestricted=true)] 
public static string ConvertSecurityDescriptorToString (
		byte[] sd
)
C++
[PermissionSetAttribute(SecurityAction::Demand, Unrestricted=true)] 
public:
static String^ ConvertSecurityDescriptorToString (
		array<unsigned char>^ sd
)
J#
/** @attribute PermissionSetAttribute(SecurityAction.Demand, Unrestricted=true) */ 
public static String ConvertSecurityDescriptorToString (
		byte[] sd
)
JScript
public static function ConvertSecurityDescriptorToString (
		sd : byte[]
) : String

Parameters

sd

The security descriptor to convert.

Return Value

A string representation of the security descriptor.

Exceptions

Exception type Condition
System.ArgumentNullException

The argument is null.

System.ComponentModel.Win32Exception

The Win32 function returns a failure.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also