共用方式為


SidIdentityHelper.DecodeSid Method

Convert a binary SID into its parts.

The code for this conversion comes from the SecurityIdentifier object.

Namespace:  Microsoft.TeamFoundation.Framework.Common
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)

Syntax

'Declaration
Public Shared Function DecodeSid ( _
    binarySid As Byte(), _
    <OutAttribute> ByRef revision As Integer, _
    <OutAttribute> ByRef authority As ULong _
) As UInteger()
public static uint[] DecodeSid(
    byte[] binarySid,
    out int revision,
    out ulong authority
)
public:
static array<unsigned int>^ DecodeSid(
    array<unsigned char>^ binarySid, 
    [OutAttribute] int% revision, 
    [OutAttribute] unsigned long long% authority
)
static member DecodeSid : 
        binarySid:byte[] * 
        revision:int byref * 
        authority:uint64 byref -> uint32[] 
public static function DecodeSid(
    binarySid : byte[], 
    revision : int, 
    authority : ulong
) : uint[]

Parameters

Return Value

Type: array<System.UInt32[]

.NET Framework Security

See Also

Reference

SidIdentityHelper Class

Microsoft.TeamFoundation.Framework.Common Namespace