System.CreateEncryptionKey() Method
Version: Available or changed with runtime version 1.0.
Creates an encryption key for the current tenant.
Syntax
[Ok := ] System.CreateEncryptionKey()
Note
This method can be invoked without specifying the data type name.
Return Value
[Optional] Ok
Type: Boolean
true if the operation was successful; otherwise false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.
Remarks
If a key already exists, the following error will be displayed: Unable to create a new encryption key. An encryption key already exists.
Example
This code example creates an encryption key for the current tenant. It uses the EncryptionEnabled method to perform a check.
if not EncryptionEnabled then
CreateEncryptionKey();
See Also
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: