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

SPUtility.GetGuidFromShortGuid method

SharePoint 2013

This method is used to decode the "base64url" encoded string (see http://tools.ietf.org/html/rfc4648) back to a normal GUID.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public static Guid GetGuidFromShortGuid(
	string shortGuid


Type: System.String

Return value

Type: System.Guid
the Guid value

The bases64url format is basically base 64 except that it: 1) replaces '+' with '-' 2) replaces '/' with '_' 3) trims '=' padding at the end

© 2015 Microsoft