IVsSettingsStore.CollectionExists(String, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定给定集合是否存在。
public:
int CollectionExists(System::String ^ collectionPath, [Runtime::InteropServices::Out] int % pfExists);
int CollectionExists(std::wstring const & collectionPath, [Runtime::InteropServices::Out] int & pfExists);
public int CollectionExists (string collectionPath, out int pfExists);
abstract member CollectionExists : string * -> int
Public Function CollectionExists (collectionPath As String, ByRef pfExists As Integer) As Integer
参数
- collectionPath
- String
中集合的路径。
- pfExists
- Int32
弄如果集合存在,则返回 true。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。