你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

base64_encode_fromguid()

GUID 编码为 base64 字符串。

语法

base64_encode_fromguid(guid)

详细了解语法约定

参数

名称 类型 必需 描述
guid guid ✔️ 要编码为 base64 字符串的值。

返回

返回从 GUID 编码的 base64 字符串。

示例

print Quine = base64_encode_fromguid(toguid("ae3133f2-6e22-49ae-b06a-16e6a9b212eb"))  

输出

Quine
8jMxriJurkmwahbmqbIS6w==

如果尝试解码不是 GUID 的任何项(如下所示),则会引发错误:

print Empty = base64_encode_fromguid("abcd1231")