System.Security.Policy.ApplicationDirectory Class

Assembly: Mscorlib.dll
Namespace: System.Security.Policy
Summary
Provides the application directory as evidence for policy evaluation. This class cannot be inherited.
C# Syntax:
[Serializable]
public sealed class ApplicationDirectory
Remarks
The domain host can associate a file directory with an application domain. For an ASP.NET-based server application, this is typically set to the directory that contains the base page of the application. Microsoft Internet Explorer Web applications do not have an application directory. The evidence for policy evaluation is only provided when the application domain is associated with a file directory.
See also:
System.Security.Policy Namespace

System.Security.Policy.ApplicationDirectory Member List:

Public Constructors
ctor #1 Initializes a new instance of the ApplicationDirectory class.
Public Properties
Directory Read-only

Gets the path of the application directory.
Public Methods
Copy Creates a new copy of the ApplicationDirectory.
Equals Overridden:
Determines whether instances of the same type of an evidence object are equivalent.
GetHashCode Overridden:
Gets the hash code of the current application directory.
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:
Gets a string representation of the state of the ApplicationDirectory evidence object.
Protected Methods
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:


System.Security.Policy.ApplicationDirectory Member Details

ctor #1
Summary
Initializes a new instance of the ApplicationDirectory class.
C# Syntax:
public ApplicationDirectory(
   string name
);
Parameters:

name

The path of the application directory.

Exceptions
Exception Type Condition
ArgumentNullException The name parameter is null.
Remarks
Application code does not need to create instances of this class.

Return to top


Property: Directory (read-only)
Summary
Gets the path of the application directory.
C# Syntax:
public string Directory {get;}

Return to top


Method: Copy()
Summary
Creates a new copy of the ApplicationDirectory.
C# Syntax:
public object Copy();
Return Value:
A new, identical copy of the ApplicationDirectory.

Return to top


Overridden Method: Equals(
   object o
)
Summary
Determines whether instances of the same type of an evidence object are equivalent.
C# Syntax:
public override bool Equals(
   object o
);
Parameters:

o

An object of same type as the current evidence object.

Return Value:
true if the two instances are equivalent; otherwise, false.
Remarks
The directory values of the two instances must match exactly. Equivalent noncanonical paths are not resolved. For example, C:\app and C:\temp\...\app are not equal directory values.

Return to top


Method: Finalize()
Inherited
See base class member description: System.Object.Finalize
C# Syntax:
~ApplicationDirectory();

For more information on members inherited from System.Object click on the link above.

Return to top


Overridden Method: GetHashCode()
Summary
Gets the hash code of the current application directory.
C# Syntax:
public override int GetHashCode();
Return Value:
The hash code of the current application directory.

Return to top


Method: GetType()
Inherited
See base class member description: System.Object.GetType
C# Syntax:
public Type GetType();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: MemberwiseClone()
Inherited
See base class member description: System.Object.MemberwiseClone
C# Syntax:
protected object MemberwiseClone();

For more information on members inherited from System.Object click on the link above.

Return to top


Overridden Method: ToString()
Summary
Gets a string representation of the state of the ApplicationDirectory evidence object.
C# Syntax:
public override string ToString();
Return Value:
A representation of the state of the ApplicationDirectory evidence object.
Remarks
This method is useful during debugging to get an easy-to-read representation of the object.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.