Url 类

定义

注意

Code Access Security is not supported or honored by the runtime.

提供代码程序集源自的 URL 作为策略评估的证据。 此类不能被继承。

public ref class Url sealed : System::Security::Policy::EvidenceBase, System::Security::Policy::IIdentityPermissionFactory
public ref class Url sealed : System::Security::Policy::IIdentityPermissionFactory
[System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public sealed class Url : System.Security.Policy.EvidenceBase, System.Security.Policy.IIdentityPermissionFactory
[System.Serializable]
public sealed class Url : System.Security.Policy.IIdentityPermissionFactory
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class Url : System.Security.Policy.IIdentityPermissionFactory
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class Url : System.Security.Policy.EvidenceBase, System.Security.Policy.IIdentityPermissionFactory
public sealed class Url : System.Security.Policy.EvidenceBase, System.Security.Policy.IIdentityPermissionFactory
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type Url = class
    inherit EvidenceBase
    interface IIdentityPermissionFactory
[<System.Serializable>]
type Url = class
    interface IIdentityPermissionFactory
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type Url = class
    interface IIdentityPermissionFactory
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type Url = class
    inherit EvidenceBase
    interface IIdentityPermissionFactory
type Url = class
    inherit EvidenceBase
    interface IIdentityPermissionFactory
Public NotInheritable Class Url
Inherits EvidenceBase
Implements IIdentityPermissionFactory
Public NotInheritable Class Url
Implements IIdentityPermissionFactory
继承
继承
Url
属性
实现

注解

Caution

代码访问安全性(CAS)已在 .NET Framework 和 .NET 的所有版本中弃用。 如果使用与 CAS 相关的 API,最新版本的 .NET 不会遵循 CAS 注释,并会生成错误。 开发人员应寻求完成安全任务的替代方法。

证据的存在 Url 在授予集中产生一个 UrlIdentityPermissionDemand UrlIdentityPermission如果有,则UrlIdentityPermission与证据相对Url应的证据与所需的权限进行比较。

考虑完整的 URL,包括协议(HTTP、HTTPS、FTP)和文件。 例如, http://www.fourthcoffee.com/process/grind.htm 是完整的 URL。

URL 可以完全匹配,也可以通过最终位置的通配符进行匹配。 例如, http://www.fourthcoffee.com/process/* 是通配符 URL。

构造函数

名称 说明
Url(String)
已过时.

使用代码程序集源自的 URL 初始化类的新实例 Url

属性

名称 说明
Value
已过时.

获取代码程序集源自的 URL。

方法

名称 说明
Clone()
已过时.

创建一个新对象,该对象是当前实例的副本。

Clone()
已过时.

创建一个新对象,该对象是当前实例的完整副本。

(继承自 EvidenceBase)
Copy()
已过时.

创建证据对象的新副本。

CreateIdentityPermission(Evidence)
已过时.

创建与证据类的 Url 当前实例对应的标识权限。

Equals(Object)
已过时.

将当前 Url 证据对象与指定对象的等效性进行比较。

GetHashCode()
已过时.

获取当前 URL 的哈希代码。

GetType()
已过时.

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()
已过时.

创建当前 Object的浅表副本。

(继承自 Object)
ToString()
已过时.

返回当前 Url字符串表示形式。

适用于