Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
Switch services using the Version drop-down list. Learn more about navigation.
Applies to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Decodes a base64 string to a GUID.
Syntax
base64_decode_toguid(base64_string)
Learn more about syntax conventions.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| base64_string | string |
✔️ | The value to decode from base64 to a GUID. |
Returns
Returns a GUID decoded from a base64 string.
Examples
The following example shows how to use base64_decode_toguid() to decode a base64 string into a GUID.
print Quine = base64_decode_toguid("JpbpECu8dUy7Pv5gbeJXAA==")
Output
| Quine |
|---|
| 10e99626-bc2b-754c-bb3e-fe606de25700 |
If you try to decode an invalid base64 string, "null" will be returned:
print Empty = base64_decode_toguid("abcd1231")
Related content
To encode a GUID to a base64 string, see base64_encode_fromguid().