Utils::ConvertStringToSid Method


The ConvertStringToSid method converts a string containing a security identifier to a byte array.

Syntax


public Byte[] ConvertStringToSid(
  String textSid
);


Public Function ConvertStringToSid( _
  ByVal textSid As String _
) As Byte[]
Implements Utils.ConvertStringToSid

Parameters

textSid

A string representation of a security identifier.

Return Value

A security identifier.

Exceptions

Exception typeCondition
ArgumentNullException

The argument is null.

Win32Exception

The Win32 function returns a failure.

Requirements

ProductILM 2007 FP1
NamespaceMicrosoft.MetadirectoryServices
AssemblyMicrosoft.MetadirectoryServices
.NET Framework.NET Framework 2.0

See Also

Utils


Send comments about this topic to Microsoft

Build date: 2/16/2009

Show: