Share via


NullXmlEncryptor.Encrypt(XElement) Method

Definition

Encrypts the specified XElement with a null encryptor, i.e., by returning the original value of plaintextElement unencrypted.

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

Parameters

plaintextElement
XElement

The plaintext to echo back.

Returns

An EncryptedXmlInfo that contains the null-encrypted value of plaintextElement along with information about how to decrypt it.

Implements

Applies to