ConfigurationHelperService.GetUserConfigurationPath Method
Gets the most likely path to user configuration files for the current project, based on the values of different project properties.
Namespace: Microsoft.VisualStudio.Shell.Design.Serialization
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Declaration
Public Function GetUserConfigurationPath ( _
provider As IServiceProvider, _
project As Project, _
userLevel As ConfigurationUserLevel, _
underHostingProcess As Boolean, _
buildConfiguration As Configuration _
) As String
'Usage
Dim instance As ConfigurationHelperService
Dim provider As IServiceProvider
Dim project As Project
Dim userLevel As ConfigurationUserLevel
Dim underHostingProcess As Boolean
Dim buildConfiguration As Configuration
Dim returnValue As String
returnValue = instance.GetUserConfigurationPath(provider, _
project, userLevel, underHostingProcess, _
buildConfiguration)
public string GetUserConfigurationPath(
IServiceProvider provider,
Project project,
ConfigurationUserLevel userLevel,
bool underHostingProcess,
Configuration buildConfiguration
)
public:
String^ GetUserConfigurationPath(
IServiceProvider^ provider,
Project^ project,
ConfigurationUserLevel userLevel,
bool underHostingProcess,
Configuration^ buildConfiguration
)
member GetUserConfigurationPath :
provider:IServiceProvider *
project:Project *
userLevel:ConfigurationUserLevel *
underHostingProcess:bool *
buildConfiguration:Configuration -> string
public function GetUserConfigurationPath(
provider : IServiceProvider,
project : Project,
userLevel : ConfigurationUserLevel,
underHostingProcess : boolean,
buildConfiguration : Configuration
) : String
Parameters
- provider
Type: System.IServiceProvider
IServiceProvider.
- project
Type: EnvDTE.Project
The current Project.
- userLevel
Type: System.Configuration.ConfigurationUserLevel
ConfigurationUserLevel.
- underHostingProcess
Type: System.Boolean
true if in a hosted process, otherwise false.
- buildConfiguration
Type: EnvDTE.Configuration
BuildConfiguration.
Return Value
Type: System.String
The user configuration path, or nulla null reference (Nothing in Visual Basic) if a valid path could not be constructed from the information in the project.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ConfigurationHelperService Class