XmlDocumentDecryptor.CreateDecryptingXmlReader 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个 XmlReader 以透明方式解密数据。
public:
System::Xml::XmlReader ^ CreateDecryptingXmlReader(System::IO::Stream ^ input, System::Xml::XmlReaderSettings ^ settings);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Microsoft.Extensions.Configuration.Xml can use EncryptedXml which may contain XSLTs in the xml. XSLTs require dynamic code.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Microsoft.Extensions.Configuration.Xml can use EncryptedXml. If you use encrypted XML files, your application might not have the algorithm implementations it needs. To avoid this problem, one option you can use is a DynamicDependency attribute to keep the algorithm implementations in your application.")]
public System.Xml.XmlReader CreateDecryptingXmlReader(System.IO.Stream input, System.Xml.XmlReaderSettings? settings);
public System.Xml.XmlReader CreateDecryptingXmlReader(System.IO.Stream input, System.Xml.XmlReaderSettings? settings);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Microsoft.Extensions.Configuration.Xml can use EncryptedXml which may contain XSLTs in the xml. XSLTs require dynamic code.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Microsoft.Extensions.Configuration.Xml can use EncryptedXml. If you use encrypted XML files, your application might not have the algorithm implementations it needs. To avoid this problem, one option you can use is a DynamicDependency attribute to keep the algorithm implementations in your application.")>]
member this.CreateDecryptingXmlReader : System.IO.Stream * System.Xml.XmlReaderSettings -> System.Xml.XmlReader
member this.CreateDecryptingXmlReader : System.IO.Stream * System.Xml.XmlReaderSettings -> System.Xml.XmlReader
Public Function CreateDecryptingXmlReader (input As Stream, settings As XmlReaderSettings) As XmlReader
参数
- settings
- XmlReaderSettings
新 XmlReader 实例的设置。
返回
以透明方式解密数据的一个 XmlReader 。
- 属性