使用 版本 下拉選單切換服務。 了解更多關於導航的資訊。
Apply to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
將base64字串譯碼為 GUID。
語法
base64_decode_toguid(
base64_string)
深入瞭解 語法慣例。
參數
| 姓名 | 類型 | 必要 | 描述 |
|---|---|---|---|
| base64_string | string |
✔️ | 要從base64譯碼為 GUID 的值。 |
傳回
範例
下列範例示範如何使用 將 base64_decode_toguid() 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()。