11 private URLString m_appDirectory;
15 public string Directory => m_appDirectory.ToString();
26 m_appDirectory =
new URLString(name);
31 m_appDirectory = appDirectory;
38 public override bool Equals(
object o)
41 if (applicationDirectory ==
null)
45 return m_appDirectory.Equals(applicationDirectory.m_appDirectory);
52 return m_appDirectory.GetHashCode();
73 if (m_appDirectory !=
null)
77 return securityElement;
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
Provides the application directory as evidence for policy evaluation. This class cannot be inherited.
string Directory
Gets the path of the application directory.
Provides a base class from which all objects to be used as evidence must derive.
override bool Equals(object o)
Determines whether instances of the same type of an evidence object are equivalent.
void AddChild(SecurityElement child)
Adds a child element to the XML element.
override string ToString()
Gets a string representation of the state of the T:System.Security.Policy.ApplicationDirectory eviden...
Represents the XML object model for encoding security objects. This class cannot be inherited.
override int GetHashCode()
Gets the hash code of the current application directory.
ApplicationDirectory(string name)
Initializes a new instance of the T:System.Security.Policy.ApplicationDirectory class.
object Copy()
Creates a new copy of the T:System.Security.Policy.ApplicationDirectory.
void AddAttribute(string name, string value)
Adds a name/value attribute to an XML element.
Specifies that the class can be serialized.
override string ToString()
Produces a string representation of an XML element and its constituent attributes,...
override EvidenceBase Clone()
Creates a new object that is a copy of the current instance.