你当前正在访问 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")
相关内容
- 若要将 base64 字符串解码为 GUID,请参阅 base64_decode_toguid()。
- 若要从字符串创建 GUID,请参阅 toguid()。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈