SPUtility.GetGuidFromShortGuid method
這個方法用於解碼之編碼"base64url"字串 (請參閱 http://tools.ietf.org/html/rfc4648) 回到一般的 GUID。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function GetGuidFromShortGuid ( _
shortGuid As String _
) As Guid
'用途
Dim shortGuid As String
Dim returnValue As Guid
returnValue = SPUtility.GetGuidFromShortGuid(shortGuid)
public static Guid GetGuidFromShortGuid(
string shortGuid
)
參數
- shortGuid
Type: System.String
傳回值
Type: System.Guid
Guid 值
備註
Bases64url 格式是基本上 base 64 其除外: 1) 取代 '+' 與 '-' 2) 取代 '/' 與 '_' 3) 會修剪 '=' 邊框距離設結尾