This documentation is archived and is not being maintained.

XmlSecureResolver Constructor (XmlResolver, String)

Initializes a new instance of the XmlSecureResolver class with the XmlResolver and URL provided.

Namespace: System.Xml
Assembly: System.Xml (in system.xml.dll)

public XmlSecureResolver (
	XmlResolver resolver,
	string securityUrl
public XmlSecureResolver (
	XmlResolver resolver, 
	String securityUrl
public function XmlSecureResolver (
	resolver : XmlResolver, 
	securityUrl : String



The XmlResolver wrapped by the XmlSecureResolver.


The URL used to create the System.Security.PermissionSet that will be applied to the underlying XmlResolver. The XmlSecureResolver calls PermissionSet.PermitOnly on the created PermissionSet before calling GetEntity on the underlying XmlResolver.


There are differences in the security infrastructure for code running on the .NET Framework common language runtime (CLR) and for code running on the CLR that is integrated within Microsoft SQL Server 2005. This can lead to cases where code developed for the .NET Framework CLR operates differently when used on the SQL Server integrated CLR. One of these differences affects the XmlSecureResolver class when you have evidence that is based on a URL (This can occur when you use the CreateEvidenceForUrl method or the XmlSecureResolver(XmlResolver,String) constructor). The policy resolution mechanism of the SQL Server integrated CLR does not utilize the Url or Zone information. Instead, the SQL Server integrated CLR grants permissions based on the GUID that the server adds when assemblies are loaded. When you use the XmlSecureResolver in the SQL Server integrated CLR, provide any required evidence directly using a specified PermissionSet.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1