base64_encode_fromguid()

使用 “版本 ”下拉列表切换服务。 了解有关导航的详细信息
适用于:✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel

GUID 编码为 base64 字符串。

语法

base64_encode_fromguid( Guid)

详细了解语法约定

参数

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

返回

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

例子

以下示例演示如何使用 base64_encode_fromguid() GUID 将 GUID 编码为 base64 字符串。

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

输出

Quine
8jMxriJurkmwahbmqbIS6w==

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

print Empty = base64_encode_fromguid("abcd1231")