返回 Visual Studio 使用存储各种文件的应用程序数据 " 文件夹路径。
命名空间: Microsoft.VisualStudio.Shell.Interop
程序集: Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)
Microsoft.VisualStudio.Shell.Interop.10.0(在 Microsoft.VisualStudio.Shell.Interop.10.0.dll 中)
语法
声明
Function GetApplicationDataFolder ( _
folder As UInteger, _
<OutAttribute> ByRef folderPath As String _
) As Integer
int GetApplicationDataFolder(
uint folder,
out string folderPath
)
参数
- folder
类型:System.UInt32
[in] 包含应用程序数据的文件夹的名称。
- folderPath
类型:System.String%
[out] 完成路径到文件夹。
返回值
类型:System.Int32
,如果找到,则返回 S_OK 文件夹路径。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。