RemoteWebConfigurationHostServer.DoEncryptOrDecrypt 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
條件式加密或解密由 xmlString
參數所參考的字串值。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
virtual System::String ^ DoEncryptOrDecrypt(bool doEncrypt, System::String ^ xmlString, System::String ^ protectionProviderName, System::String ^ protectionProviderType, cli::array <System::String ^> ^ paramKeys, cli::array <System::String ^> ^ paramValues);
public string DoEncryptOrDecrypt (bool doEncrypt, string xmlString, string protectionProviderName, string protectionProviderType, string[] paramKeys, string[] paramValues);
abstract member DoEncryptOrDecrypt : bool * string * string * string * string[] * string[] -> string
override this.DoEncryptOrDecrypt : bool * string * string * string * string[] * string[] -> string
Public Function DoEncryptOrDecrypt (doEncrypt As Boolean, xmlString As String, protectionProviderName As String, protectionProviderType As String, paramKeys As String(), paramValues As String()) As String
參數
- doEncrypt
- Boolean
true
表示加密,false
表示解密。
- xmlString
- String
要加密或解密的 XML。
- protectionProviderName
- String
用於保護組態資料的提供者。
- paramKeys
- String[]
保護提供者之選擇性參數的索引鍵。
- paramValues
- String[]
保護提供者之選擇性參數的值。
傳回
包含 xmlString
之加密或解密值的字串。
實作
例外狀況
protectionProviderType
並非衍生自 ProtectedConfigurationProvider。