XmlResolver.ThrowingResolver Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an XML resolver that forbids entity resolution.
public:
static property System::Xml::XmlResolver ^ ThrowingResolver { System::Xml::XmlResolver ^ get(); };
public static System.Xml.XmlResolver ThrowingResolver { get; }
static member ThrowingResolver : System.Xml.XmlResolver
Public Shared ReadOnly Property ThrowingResolver As XmlResolver
Property Value
An XML resolver that forbids entity resolution.
Remarks
Calling GetEntity(Uri, String, Type) or GetEntityAsync(Uri, String, Type) on the XmlResolver instance returned by this property is forbidden and will result in an XmlException being thrown.
Use ThrowingResolver when external entity resolution must be prohibited, even when Document Type Definition (DTD) processing is otherwise enabled.
Applies to
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk