Url 類別

定義

警告

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

提供程式碼組合的來源網址,作為政策評估的證據。 此類別無法獲得繼承。

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
屬性
實作

備註

注意事項

.NET Framework 和 .NET 的所有版本中,代碼存取安全性(CAS)已被棄用。 最新版本的 .NET 不會接受 CAS 註釋,如果使用 CAS 相關 API,則會產生錯誤。 開發人員應尋求其他方法來完成安全任務。

證據Url的存在會在補助集中產生 。UrlIdentityPermission 若存在 DemandUrlIdentityPermissionUrlIdentityPermissionUrl則對應證據與要求的許可。

會考慮完整的網址,包括協定(HTTP、HTTPS、FTP)及檔案。 例如, http://www.fourthcoffee.com/process/grind.htm 是一個完整的網址。

網址可以完全匹配,或是最後位置的萬用卡來匹配。 例如, http://www.fourthcoffee.com/process/* 是萬用字元網址。

建構函式

名稱 Description
Url(String)
已淘汰.

初始化類別的新實例 Url ,並以程式碼組合所產生的 URL。

屬性

名稱 Description
Value
已淘汰.

取得程式碼組合語言來源的網址。

方法

名稱 Description
Clone()
已淘汰.

建立一個新的物件,該物件是目前實例的複製品。

Clone()
已淘汰.

建立一個新物件,該物件是目前實例的完整副本。

(繼承來源 EvidenceBase)
Copy()
已淘汰.

建立一個新的證據物件副本。

CreateIdentityPermission(Evidence)
已淘汰.

建立一個對應證據類別目前實例 Url 的身份權限。

Equals(Object)
已淘汰.

比較當前 Url 證據物件與指定的物件以求等價。

GetHashCode()
已淘汰.

取得目前 URL 的雜湊碼。

GetType()
已淘汰.

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()
已淘汰.

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()
已淘汰.

回傳當前 Url的字串表示。

適用於