編集

次の方法で共有


XmlSecureResolver.CreateEvidenceForUrl(String) Method

Definition

Creates evidence using the supplied URL.

public:
 static System::Security::Policy::Evidence ^ CreateEvidenceForUrl(System::String ^ securityUrl);
public static System.Security.Policy.Evidence CreateEvidenceForUrl (string securityUrl);
static member CreateEvidenceForUrl : string -> System.Security.Policy.Evidence
Public Shared Function CreateEvidenceForUrl (securityUrl As String) As Evidence

Parameters

securityUrl
String

The URL used to create the evidence.

Returns

The evidence generated from the supplied URL as defined by the default policy.

Remarks

Important

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 (that is, when you use the CreateEvidenceForUrl method or the XmlSecureResolver(XmlResolver, String) constructor). The policy resolution mechanism of the SQL Server integrated CLR doesn't use the Url or Zone information. Instead, it 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 by using a specified PermissionSet.

Applies to