ConfigurationProperty.DecryptValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Decrypts an encrypted value and returns it as a SecureString.
public System.Security.SecureString DecryptValue ();
member this.DecryptValue : unit -> System.Security.SecureString
Public Function DecryptValue () As SecureString
Returns
Returns SecureString.
Exceptions
The value of the ConfigurationProperty is not encrypted.
Remarks
See https://docs.microsoft.com/azure/service-fabric/service-fabric-application-secret-management for an example on how to encrypt a secret and store it in the configuration and how to use this method to decrypt the value at runtime.
Applies to
Azure SDK for .NET