Udostępnij za pośrednictwem


ConfigurationHelperService.GetUserConfigurationPath Method

Definition

Gets the most likely path to user configuration files for the current project, based on the values of different project properties.

public:
 System::String ^ GetUserConfigurationPath(IServiceProvider ^ provider, EnvDTE::Project ^ project, System::Configuration::ConfigurationUserLevel userLevel, bool underHostingProcess, EnvDTE::Configuration ^ buildConfiguration);
public string GetUserConfigurationPath (IServiceProvider provider, EnvDTE.Project project, System.Configuration.ConfigurationUserLevel userLevel, bool underHostingProcess, EnvDTE.Configuration buildConfiguration);
member this.GetUserConfigurationPath : IServiceProvider * EnvDTE.Project * System.Configuration.ConfigurationUserLevel * bool * EnvDTE.Configuration -> string
Public Function GetUserConfigurationPath (provider As IServiceProvider, project As Project, userLevel As ConfigurationUserLevel, underHostingProcess As Boolean, buildConfiguration As Configuration) As String

Parameters

project
Project

The current Project.

underHostingProcess
Boolean

true if in a hosted process, otherwise false.

buildConfiguration
Configuration

EnvDTE.BuildConfiguration.

Returns

The user configuration path, or null if a valid path could not be constructed from the information in the project.

Applies to