IVsWritableSettingsStore.GetSubCollectionName 方法 (String, UInt32, String%)

返回子集合的名称。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop.10.0(在 Microsoft.VisualStudio.Shell.Interop.10.0.dll 中)

语法

声明
Function GetSubCollectionName ( _
    collectionPath As String, _
    index As UInteger, _
    <OutAttribute> ByRef subCollectionName As String _
) As Integer
int GetSubCollectionName(
    string collectionPath,
    uint index,
    out string subCollectionName
)

参数

  • index
    类型:System.UInt32
    [in] 子集合的索引。从零开始的。
  • subCollectionName
    类型:System.String%
    [out] 子集合的名称。此参数应指向未初始化的 BSTR,方法将足够的空间保留请求的子集合的名称。,当不再需要时,调用方应调用 SysFreeString 释放 BSTR。

返回值

类型:System.Int32
返回 S_OK ,如果子集合名称返回,或者 E_INVALIDARG ,如果索引大于或等于子集合数,或集合不存在。

备注

该返回的名称可以追加到路径查询属性和子集合此子集合。

.NET Framework 安全性

请参见

参考

IVsWritableSettingsStore 接口

GetSubCollectionName 重载

Microsoft.VisualStudio.Shell.Interop 命名空间