Share via


SPUtility.TryGetStringFromBinaryUserId Method

Tries to extract a string from the binary user identifier and returns it.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Shared Function TryGetStringFromBinaryUserId ( _
    binaryUserId As Byte(), _
    <OutAttribute> ByRef ex As Exception _
) As String
'Usage
Dim binaryUserId As Byte()
Dim ex As Exception
Dim returnValue As String

returnValue = SPUtility.TryGetStringFromBinaryUserId(binaryUserId, _
    ex)
public static string TryGetStringFromBinaryUserId(
    byte[] binaryUserId,
    out Exception ex
)

Parameters

  • ex
    Type: System.Exception

    When this method returns, contains an Exception if any errors were encountered while getting the string.

Return Value

Type: System.String
A string that contains the extracted user identifier string.

See Also

Reference

SPUtility Class

SPUtility Members

Microsoft.SharePoint.Utilities Namespace