[Serializable] |
Site identity is defined for code from URLs with any protocol except FILE. A site is the string between the "//" after the protocol of a URL and the following "/", if present. For example, www.fourthcoffee.com is the site identity in the URL http://www.fourthcoffee.com/process/grind.htm. This excludes port numbers. If a given URL is http://www.fourthcoffee.com:8000/, the site is www.fourthcoffee.com , not www.fourthcoffee.com:8000.
ctor #1 | Initializes a new instance of the Site class with the Web site from which a code assembly originates. |
Name | Read-only Gets the site from which the code assembly originates. |
Copy | Creates an equivalent copy of the Site. |
CreateFromUrl | Creates a new Site from the specified URL. |
CreateIdentityPermission | Creates an identity permission that corresponds to the current Site. |
Equals | Overridden: Compares the current Site to the specified object for equivalence. |
GetHashCode | Overridden: Returns the hash code of the current Web site name. |
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: Returns a string representation of the current Site. |
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 Site( |
name
Exception Type | Condition |
---|---|
ArgumentNullException | The name parameter is null. |
ArgumentException | The name parameter is not a valid Site. |
public string Name {get;}
|
public object Copy(); |
url
Exception Type | Condition |
---|---|
ArgumentException | The url parameter is not a valid URL. |
public IPermission CreateIdentityPermission( |
evidence
o
Exception Type | Condition |
---|---|
ArgumentException | The o parameter is not a Site object. |
~Site(); |
public override int GetHashCode(); |
public Type GetType(); |
protected object MemberwiseClone(); |
public override string ToString(); |