Share via


SPUtility.GetShortGuid method

This method is used to encode a shorter "Guid" string using bases64url format (see http://tools.ietf.org/html/rfc4648).

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

Syntax

'Declaration
Public Shared Function GetShortGuid ( _
    value As Guid _
) As String
'Usage
Dim value As Guid
Dim returnValue As String

returnValue = SPUtility.GetShortGuid(value)
public static string GetShortGuid(
    Guid value
)

Parameters

Return value

Type: System.String
an encoded guid

Remarks

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

See also

Reference

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace