Share via


DpapiXmlEncryptor.Encrypt(XElement) 方法

定义

加密指定的 XElement

public:
 virtual Microsoft::AspNetCore::DataProtection::XmlEncryption::EncryptedXmlInfo ^ Encrypt(System::Xml::Linq::XElement ^ plaintextElement);
public Microsoft.AspNetCore.DataProtection.XmlEncryption.EncryptedXmlInfo Encrypt (System.Xml.Linq.XElement plaintextElement);
abstract member Encrypt : System.Xml.Linq.XElement -> Microsoft.AspNetCore.DataProtection.XmlEncryption.EncryptedXmlInfo
override this.Encrypt : System.Xml.Linq.XElement -> Microsoft.AspNetCore.DataProtection.XmlEncryption.EncryptedXmlInfo
Public Function Encrypt (plaintextElement As XElement) As EncryptedXmlInfo

参数

plaintextElement
XElement

要加密的纯文本。

返回

一个 EncryptedXmlInfo ,它包含 的 plaintextElement 加密值以及有关如何解密它的信息。

实现

适用于