Share via


Utils.ConvertSecurityDescriptorToString Method

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

'Usage
Dim sd As Byte()
Dim returnValue As String

returnValue = Utils.ConvertSecurityDescriptorToString(sd)

Syntax

'Declaration
<PermissionSetAttribute(SecurityAction.Demand, Unrestricted:=True)> _
Public Shared Function ConvertSecurityDescriptorToString ( _
    sd As Byte() _
) As String
[PermissionSetAttribute(SecurityAction.Demand, Unrestricted=true)] 
public static string ConvertSecurityDescriptorToString (
    byte[] sd
)
[PermissionSetAttribute(SecurityAction::Demand, Unrestricted=true)] 
public:
static String^ ConvertSecurityDescriptorToString (
    array<unsigned char>^ sd
)
/** @attribute PermissionSetAttribute(SecurityAction.Demand, Unrestricted=true) */ 
public static String ConvertSecurityDescriptorToString (
    byte[] sd
)
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

Reference

Utils Class
Utils Members
Microsoft.MetadirectoryServices Namespace