有可能路径用户当前项目的配置文件,根据不同的项目属性的值。
命名空间: Microsoft.VisualStudio.Shell.Design.Serialization
程序集: Microsoft.VisualStudio.Shell.Design(在 Microsoft.VisualStudio.Shell.Design.dll 中)
语法
声明
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
)
参数
- provider
类型:System.IServiceProvider
IServiceProvider .
- project
类型:EnvDTE.Project
当前 Project。
- underHostingProcess
类型:System.Boolean
true ,如果在承载的过程,否则 false。
- buildConfiguration
类型:EnvDTE.Configuration
BuildConfiguration .
返回值
类型:System.String
用户配置路径或 nullnull 引用(在 Visual Basic 中为 Nothing) ,如果一个有效的路径不能从在项目的信息构造。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。