Share via


IVsSettingsStore.CollectionExists(String, Int32) Method

Definition

Determines whether the given collection exists.

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 -> int
Public Function CollectionExists (collectionPath As String, ByRef pfExists As Integer) As Integer

Parameters

collectionPath
String

[in] The path to the collection.

pfExists
Int32

[out] Returns true if the collection exists.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

This method is safe to access from any thread.

Applies to