Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TryGetStringFromBinaryUserId method
Collapse the table of content
Expand the table of content

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)

public static string TryGetStringFromBinaryUserId(
	byte[] binaryUserId,
	out Exception ex


Type: []

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

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.
© 2015 Microsoft