[Serializable] |
Sites can be matched exactly, or by a wildcard ("*") prefix at the dot delimiter. For example, the site name *.fourthcoffee.com matches fourthcoffee.com as well as www.fourthcoffee.com. Without a wildcard, the site name must be a precise match. The site name * will match any site, but will not match code that has no site evidence.
ctor #1 | Initializes a new instance of the SiteMembershipCondition class with name of the site that determines membership. |
Site | Read-write Gets or sets the site for which the membership condition tests. |
Check | Determines whether the specified evidence satisfies the membership condition. |
Copy | Creates an equivalent copy of the membership condition. |
Equals | Overridden: Determines whether the site from the specified SiteMembershipCondition object is equivalent to the site contained in the current SiteMembershipCondition. |
FromXml | Overloaded:FromXml(SecurityElement e) Reconstructs a security object with a specified state from an XML encoding. |
FromXml | Overloaded:FromXml(SecurityElement e, PolicyLevel level) Reconstructs a security object with a specified state from an XML encoding. |
GetHashCode | Overridden: Gets the hash code for the current membership condition. |
GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
ToString | Overridden: Creates and returns a string representation of the membership condition. |
ToXml | Overloaded:ToXml() Creates an XML encoding of the security object and its current state. |
ToXml | Overloaded:ToXml(PolicyLevel level) Creates an XML encoding of the security object and its current state with the specified PolicyLevel. |
Finalize (inherited from System.Object) |
See base class member description: System.Object.Finalize Derived from System.Object, the primary base class for all objects. |
MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
Hierarchy:
public SiteMembershipCondition( |
site
Exception Type | Condition |
---|---|
ArgumentNullException | The site parameter is null. |
ArgumentException | The site parameter is not a valid Site. |
public string Site {get; set;}
|
Exception Type | Condition |
---|---|
ArgumentNullException | An attempt is made to set SiteMembershipCondition.Site to null. |
ArgumentException | An attempt is made to set SiteMembershipCondition.Site to an invalid Site. |
evidence
public IMembershipCondition Copy(); |
o
~SiteMembershipCondition(); |
public void FromXml( |
e
public void FromXml( |
e
level
Exception Type | Condition |
---|---|
ArgumentNullException | The e parameter is null. |
ArgumentException | The e parameter is not a valid membership condition element. |
public override int GetHashCode(); |
public Type GetType(); |
protected object MemberwiseClone(); |
public override string ToString(); |
public SecurityElement ToXml(); |
public SecurityElement ToXml( |
level