Compartilhar via


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

'Declaração
Public Function GetUserConfigurationPath ( _
    provider As IServiceProvider, _
    project As Project, _
    userLevel As ConfigurationUserLevel, _
    underHostingProcess As Boolean, _
    buildConfiguration As Configuration _
) As String
public string GetUserConfigurationPath(
    IServiceProvider provider,
    Project project,
    ConfigurationUserLevel userLevel,
    bool underHostingProcess,
    Configuration buildConfiguration
)

Parameters

  • underHostingProcess
    Type: System.Boolean
    true if in a hosted process, otherwise false.

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

See Also

Reference

ConfigurationHelperService Class

Microsoft.VisualStudio.Shell.Design.Serialization Namespace