SiteMembershipCondition クラス

定義

アセンブリが発生元のサイトをテストして、アセンブリがコード グループに属しているかどうかを判断します。 このクラスは継承できません。

public ref class SiteMembershipCondition sealed : System::Security::Policy::IMembershipCondition
public ref class SiteMembershipCondition sealed
[System.Serializable]
public sealed class SiteMembershipCondition : System.Security.Policy.IMembershipCondition
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class SiteMembershipCondition
[<System.Serializable>]
type SiteMembershipCondition = class
    interface IMembershipCondition
    interface ISecurityEncodable
    interface ISecurityPolicyEncodable
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SiteMembershipCondition = class
    interface IMembershipCondition
    interface ISecurityEncodable
    interface ISecurityPolicyEncodable
Public NotInheritable Class SiteMembershipCondition
Implements IMembershipCondition
Public NotInheritable Class SiteMembershipCondition
継承
SiteMembershipCondition
属性
実装

注釈

コード アセンブリは、そのコードが Site で指定された Web サイトから生成された場合、サイト メンバーシップ条件を満たします。 サイト 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されます。

サイトは、正確に照合することも、ドット区切り記号のワイルドカード ("*") プレフィックスで照合することもできます。 たとえば、サイト名*.fourthcoffee.comfourthcoffee.comwww.fourthcoffee.comに一致します。 ワイルドカードを使用しない場合、サイト名は正確に一致する必要があります。 サイト名 * は任意のサイトと一致しますが、サイトの証拠がないコードと一致しません。

コンストラクター

名前 説明
SiteMembershipCondition(String)

メンバーシップを決定するサイトの名前を使用して、 SiteMembershipCondition クラスの新しいインスタンスを初期化します。

プロパティ

名前 説明
Site

メンバーシップ条件がテストされるサイトを取得または設定します。

メソッド

名前 説明
Check(Evidence)

指定した証拠がメンバーシップ条件を満たすかどうかを判断します。

Copy()

メンバーシップ条件の同等のコピーを作成します。

Equals(Object)

指定した SiteMembershipCondition オブジェクトのサイトが、現在の SiteMembershipConditionに含まれるサイトと等しいかどうかを判断します。

FromXml(SecurityElement, PolicyLevel)

XML エンコードから、指定した状態のセキュリティ オブジェクトを再構築します。

FromXml(SecurityElement)

XML エンコードから、指定した状態のセキュリティ オブジェクトを再構築します。

GetHashCode()

現在のメンバーシップ条件のハッシュ コードを取得します。

GetType()

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

(継承元 Object)
MemberwiseClone()

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

(継承元 Object)
ToString()

メンバーシップ条件の文字列形式を作成して返します。

ToXml()

セキュリティ オブジェクトとその現在の状態の XML エンコードを作成します。

ToXml(PolicyLevel)

指定した PolicyLevelを使用して、セキュリティ オブジェクトとその現在の状態の XML エンコードを作成します。

適用対象