다음을 통해 공유


ConfigurationProperty.DecryptValue Method

Definition

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