mscorlib(4.0.0.0) API with additions
GacInstalled.cs
3 
5 {
8  [ComVisible(true)]
10  {
15  {
16  return new GacIdentityPermission();
17  }
18 
23  public override bool Equals(object o)
24  {
25  return o is GacInstalled;
26  }
27 
30  public override int GetHashCode()
31  {
32  return 0;
33  }
34 
37  public override EvidenceBase Clone()
38  {
39  return new GacInstalled();
40  }
41 
44  public object Copy()
45  {
46  return Clone();
47  }
48 
49  internal SecurityElement ToXml()
50  {
51  SecurityElement securityElement = new SecurityElement(GetType().FullName);
52  securityElement.AddAttribute("version", "1");
53  return securityElement;
54  }
55 
58  public override string ToString()
59  {
60  return ToXml().ToString();
61  }
62  }
63 }
object Copy()
Creates an equivalent copy of the current object.
Definition: GacInstalled.cs:44
Definition: __Canon.cs:3
Provides a base class from which all objects to be used as evidence must derive.
Definition: EvidenceBase.cs:12
Defines the method that creates a new identity permission.
Represents the XML object model for encoding security objects. This class cannot be inherited.
override EvidenceBase Clone()
Creates a new object that is a copy of the current instance.
Definition: GacInstalled.cs:37
Defines methods implemented by permission types.
Definition: IPermission.cs:7
override string ToString()
Returns a string representation of the current object.
Definition: GacInstalled.cs:58
Defines the set of information that constitutes input to security policy decisions....
Definition: Evidence.cs:17
void AddAttribute(string name, string value)
Adds a name/value attribute to an XML element.
Confirms that a code assembly originates in the global assembly cache (GAC) as evidence for policy ev...
Definition: GacInstalled.cs:9
Specifies that the class can be serialized.
override bool Equals(object o)
Indicates whether the current object is equivalent to the specified object.
Definition: GacInstalled.cs:23
IPermission CreateIdentityPermission(Evidence evidence)
Creates a new identity permission that corresponds to the current object.
Definition: GacInstalled.cs:14
override int GetHashCode()
Returns a hash code for the current object.
Definition: GacInstalled.cs:30
override string ToString()
Produces a string representation of an XML element and its constituent attributes,...
Defines the identity permission for files originating in the global assembly cache....