Share via


IVsWritableSettingsStore.CollectionExists(String, Int32) Method

Definition

Determines whether a named 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 settings.

pfExists
Int32

[out] true if the collection exists.

Returns

Returns T:Microsoft.VisualStudio.VSConstants.S_OK if the collection exists.

Implements

Remarks

This method is safe to access from any thread.

Applies to