返回子集合的名称。
命名空间: 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 GetSubCollectionName ( _
collectionPath As String, _
index As UInteger, _
<OutAttribute> ByRef subCollectionName As String _
) As Integer
int GetSubCollectionName(
string collectionPath,
uint index,
out string subCollectionName
)
参数
- collectionPath
类型:System.String
[in] 集合的路径。
- index
类型:System.UInt32
[in] 子集合的索引。从零开始的。
- subCollectionName
类型:System.String%
[out] 子集合的名称。此参数应指向未初始化的 BSTR,方法将足够的空间保留请求的子集合的名称。,当不再需要时,调用方应调用 SysFreeString 释放 BSTR。
返回值
类型:System.Int32
返回 S_OK ,如果子集合名称返回,或者 E_INVALIDARG ,如果索引大于或等于子集合数,或集合不存在。
备注
该返回的名称可以追加到路径查询属性和子集合此子集合。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。