ManagementConfigurationPath.ApplicationPath Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the application configuration path.
public:
property System::String ^ ApplicationPath { System::String ^ get(); };
public string ApplicationPath { get; }
member this.ApplicationPath : string
Public ReadOnly Property ApplicationPath As String
Property Value
The application configuration path.
Examples
The following example adds details of the ManagementConfigurationPath object to a linked list.
public LinkedList<string> ConfigurationPath(IServiceProvider sp) {
Connection con = (Connection)sp.GetService(typeof(Connection));
LinkedList<string> llp = new LinkedList<string>();
ManagementConfigurationPath mcp = con.ConfigurationPath;
llp.AddLast("ApplicationPath: " + mcp.ApplicationPath);
llp.AddLast("FolderPath: " + mcp.FolderPath);
llp.AddLast("GetEffectiveConfigurationPath Application: " +
mcp.GetEffectiveConfigurationPath(ManagementScope.Application));
llp.AddLast("GetEffectiveConfigurationPath Server: " +
mcp.GetEffectiveConfigurationPath(ManagementScope.Server));
llp.AddLast("GetEffectiveConfigurationPath Site: " +
mcp.GetEffectiveConfigurationPath(ManagementScope.Site));
llp.AddLast("PathType: " + mcp.PathType.ToString());
llp.AddLast("SiteName: " + mcp.SiteName);
return llp;
}
Remarks
The application configuration path is initialized in the CreateApplicationConfigurationPath method.