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
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}")]
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
type Url = class
    inherit EvidenceBase
    interface 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
Public NotInheritable Class Url
Inherits EvidenceBase
Implements IIdentityPermissionFactory
Public NotInheritable Class Url
Implements IIdentityPermissionFactory
継承
継承
Url
属性
実装

注釈

注意事項

コード アクセス セキュリティ (CAS) は、.NET Framework と .NET のすべてのバージョンで非推奨になりました。 最近のバージョンの .NET では、CAS 関連の API が使われている場合、CAS の注釈は使われず、エラーが発生します。 開発者は、代わりの手段を見つけてセキュリティ タスクを実現する必要があります。

証拠が Url 存在すると、付与セットに A が生成されます UrlIdentityPermission 。 for UrlIdentityPermissionがある場合はDemandUrlIdentityPermission証拠にUrl対応するアクセス許可が要求されたアクセス許可と比較されます。

プロトコル (HTTP、HTTPS、FTP) とファイルを含む完全な URL が考慮されます。 たとえば、 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 証拠クラスの現在のインスタンスに対応する ID アクセス許可を作成します。

Equals(Object)

現在の Url 証拠オブジェクトと指定したオブジェクトが等しいかどうかを比較します。

GetHashCode()

現在の URL のハッシュ コードを取得します。

GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
ToString()

現在の Url の文字列形式を返します。

適用対象