Site クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
注意事項
Code Access Security is not supported or honored by the runtime.
ポリシー評価の証拠としてコード アセンブリの作成元となる Web サイトを提供します。 このクラスは継承できません。
public ref class Site sealed : System::Security::Policy::EvidenceBase, System::Security::Policy::IIdentityPermissionFactory
public ref class Site 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 Site : System.Security.Policy.EvidenceBase, System.Security.Policy.IIdentityPermissionFactory
[System.Serializable]
public sealed class Site : System.Security.Policy.IIdentityPermissionFactory
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class Site : System.Security.Policy.IIdentityPermissionFactory
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class Site : System.Security.Policy.EvidenceBase, System.Security.Policy.IIdentityPermissionFactory
public sealed class Site : 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 Site = class
inherit EvidenceBase
interface IIdentityPermissionFactory
[<System.Serializable>]
type Site = class
interface IIdentityPermissionFactory
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type Site = class
interface IIdentityPermissionFactory
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type Site = class
inherit EvidenceBase
interface IIdentityPermissionFactory
type Site = class
inherit EvidenceBase
interface IIdentityPermissionFactory
Public NotInheritable Class Site
Inherits EvidenceBase
Implements IIdentityPermissionFactory
Public NotInheritable Class Site
Implements IIdentityPermissionFactory
- 継承
- 継承
-
Site
- 属性
- 実装
注釈
Caution
コード アクセス セキュリティ (CAS) は、.NET Framework と .NET のすべてのバージョンで非推奨になりました。 最近のバージョンの .NET では、CAS に関連する API が使用されている場合、CAS 注釈は使用されず、エラーが発生します。 開発者は、セキュリティ タスクを実行するための代替手段を求める必要があります。
Site証拠が存在すると、許可セットにSiteIdentityPermissionが生成されます。 DemandのSiteIdentityPermissionがある場合、SiteIdentityPermission証拠に対応するSiteは、要求されたアクセス許可と比較されます。
サイト ID は、FILE を除く任意のプロトコルを持つ URL からのコードに対して定義されます。 サイトは、URL のプロトコルの後の "//" と次の "/" (存在する場合) の間の文字列です。 たとえば、 www.fourthcoffee.com は URL http://www.fourthcoffee.com/process/grind.htm内のサイト ID です。 これにより、ポート番号が除外されます。 特定の URL がhttp://www.fourthcoffee.com:8000/されている場合、サイトはwww.fourthcoffee.comではなくwww.fourthcoffee.com:8000されます。
コンストラクター
| 名前 | 説明 |
|---|---|
| Site(String) |
古い.
コード アセンブリの作成元の Web サイトを使用して、 Site クラスの新しいインスタンスを初期化します。 |
プロパティ
| 名前 | 説明 |
|---|---|
| Name |
古い.
コード アセンブリの作成元の Web サイトを取得します。 |
メソッド
| 名前 | 説明 |
|---|---|
| Clone() |
古い.
現在のインスタンスのコピーである新しいオブジェクトを作成します。 |
| Clone() |
古い.
現在のインスタンスの完全なコピーである新しいオブジェクトを作成します。 (継承元 EvidenceBase) |
| Copy() |
古い.
Site オブジェクトの同等のコピーを作成します。 |
| CreateFromUrl(String) |
古い.
指定した URL から新しい Site オブジェクトを作成します。 |
| CreateIdentityPermission(Evidence) |
古い.
現在の Site オブジェクトに対応する ID アクセス許可を作成します。 |
| Equals(Object) |
古い.
現在の Site を指定したオブジェクトと等価性を比較します。 |
| GetHashCode() |
古い.
現在の Web サイト名のハッシュ コードを返します。 |
| GetType() |
古い.
現在のインスタンスの Type を取得します。 (継承元 Object) |
| MemberwiseClone() |
古い.
現在の Objectの簡易コピーを作成します。 (継承元 Object) |
| ToString() |
古い.
現在の Site オブジェクトの文字列形式を返します。 |