IVsSettingsManager.GetCommonExtensionsSearchPaths 方法

返回常见扩展搜索路径的列表。本机代码调用方应首先调用此方法与 paths = 0 和 commonExtensionsPaths = empty 获取该路径数列表中并将一个对应的数组,然后再次调用它实际列表路径的访问。

命名空间:  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 GetCommonExtensionsSearchPaths ( _
    paths As UInteger, _
    <OutAttribute> commonExtensionsPaths As String(), _
    <OutAttribute> ByRef actualPaths As UInteger _
) As Integer
int GetCommonExtensionsSearchPaths(
    uint paths,
    string[] commonExtensionsPaths,
    out uint actualPaths
)

参数

  • paths
    类型:System.UInt32
    [in] 数组的大小 commonExtensionsPaths的。
  • commonExtensionsPaths
    类型:array<System.String[]
    [out] 包含扩展搜索路径的字符串数组
  • actualPaths
    类型:System.UInt32%
    [out] 在 commonExtensionsPaths返回的路径的数量。

返回值

类型:System.Int32
,如果路径返回,则返回 S_OK。

.NET Framework 安全性

请参见

参考

IVsSettingsManager 接口

Microsoft.VisualStudio.Shell.Interop 命名空间