通过为每个嵌套集合创建特定集合路径,而跳过已经存在的控件时。
命名空间: Microsoft.VisualStudio.Settings
程序集: Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)
Microsoft.VisualStudio.Settings(在 Microsoft.VisualStudio.Settings.dll 中)
语法
声明
Public MustOverride Sub CreateCollection ( _
collectionPath As String _
)
public abstract void CreateCollection(
string collectionPath
)
参数
- collectionPath
类型:System.String
集合的路径。
异常
异常 | 条件 |
---|---|
ArgumentException | 如果 deis 传递给方法为空字符串 ("") 引发此异常。 |
备注
如果集合的完整路径已存在,则方法返回。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。