Url クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ポリシー評価の証拠としてコード アセンブリの作成元の URL を提供します。 このクラスは継承できません。
public ref class Url sealed : System::Security::Policy::IIdentityPermissionFactory
public ref class Url sealed : 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
[<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
Implements IIdentityPermissionFactory
Public NotInheritable Class Url
Inherits EvidenceBase
Implements IIdentityPermissionFactory
- 継承
-
Url
- 継承
- 属性
- 実装
注釈
Caution
コード アクセス セキュリティ (CAS) は、.NET Framework と .NET のすべてのバージョンで非推奨になりました。 最近のバージョンの .NET では、CAS に関連する API が使用されている場合、CAS 注釈は使用されず、エラーが発生します。 開発者は、セキュリティ タスクを実行するための代替手段を求める必要があります。
Url証拠が存在すると、許可セットにUrlIdentityPermissionが生成されます。 UrlIdentityPermissionのDemandがある場合、Url証拠に対応するUrlIdentityPermissionは、要求されたアクセス許可と比較されます。
プロトコル (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() |
現在のインスタンスのコピーである新しいオブジェクトを作成します。 |
| Copy() |
証拠オブジェクトの新しいコピーを作成します。 |
| CreateIdentityPermission(Evidence) |
Url証拠クラスの現在のインスタンスに対応する ID アクセス許可を作成します。 |
| Equals(Object) |
現在の Url 証拠オブジェクトを指定したオブジェクトと比較して等価にします。 |
| GetHashCode() |
現在の URL のハッシュ コードを取得します。 |
| GetType() |
現在のインスタンスの Type を取得します。 (継承元 Object) |
| MemberwiseClone() |
現在の Objectの簡易コピーを作成します。 (継承元 Object) |
| ToString() |
現在の Urlの文字列形式を返します。 |