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

base64_decode_toguid()

将 base64 字符串解码为 GUID

语法

base64_decode_toguid(base64_string)

详细了解语法约定

参数

名称 类型 必需 描述
base64_string string ✔️ 要从 base64 解码为 GUID 的值。

返回

返回从 base64 字符串解码的 GUID

示例

print Quine = base64_decode_toguid("JpbpECu8dUy7Pv5gbeJXAA==")  

输出

Quine
10e99626-bc2b-754c-bb3e-fe606de25700

如果尝试对无效的 base64 字符串进行解码,则会返回“null”:

print Empty = base64_decode_toguid("abcd1231")

若要将 GUID 编码为 base64 字符串,请参阅 base64_encode_fromguid()