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)

'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)

Parameters

binaryUserId
Type: []

A binary equivalent of the user identifier, usually obtained from GetBinaryUserId(String).

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.
Show: