IVsWritableSettingsStore.CreateCollection 方法

创建新集合。

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

语法

声明
Function CreateCollection ( _
    collectionPath As String _
) As Integer
int CreateCollection(
    string collectionPath
)

参数

  • collectionPath
    类型:System.String
    [in] 集合应创建的路径。

返回值

类型:System.Int32
如果集合的完整路径已存在,则返回 S_OK。如果为空字符串传递给该方法,它返回 E_INVALIDARG。

.NET Framework 安全性

请参见

参考

IVsWritableSettingsStore 接口

Microsoft.VisualStudio.Shell.Interop 命名空间