Share via


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
属性
実装

注釈

注意事項

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

証拠が Url 存在すると、付与セットに が生成されます UrlIdentityPermission 。 の UrlIdentityPermissionUrlIdentityPermission がある場合、Demand証拠に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 の文字列形式を返します。

適用対象