Udostępnij za pośrednictwem


Metoda IWindowsAuthenticationExtension.SidToPrincipalName

Pobiera nazwę główną dla danego identyfikatora SID systemu Windows.

Przestrzeń nazw:  Microsoft.ReportingServices.Interfaces
Zestawy:   Microsoft.ReportingServices.Interfaces (w Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts (w Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)

Składnia

'Deklaracja
<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey := "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")> _
Function SidToPrincipalName ( _
    sid As Byte() _
) As String
'Użycie
Dim instance As IWindowsAuthenticationExtension
Dim sid As Byte()
Dim returnValue As String

returnValue = instance.SidToPrincipalName(sid)
[StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
string SidToPrincipalName(
    byte[] sid
)
[StrongNameIdentityPermissionAttribute(SecurityAction::LinkDemand, PublicKey = L"0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
String^ SidToPrincipalName(
    array<unsigned char>^ sid
)
[<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")>]
abstract SidToPrincipalName : 
        sid:byte[] -> string 
function SidToPrincipalName(
    sid : byte[]
) : String

Parametry

  • sid
    Typ: array<System.Byte[]
    Identyfikator SID Windows przypisanego do głównego zobowiązanego.

Wartość zwracana

Typ: System.String
A ciąg zawiera nazwę głównego zobowiązanego.