IVsSettingsStore.CollectionExists(String, Int32) 方法

定义

确定给定集合是否存在。

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。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

适用于