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。