IVsWritableSettingsStore.GetPropertyCount(String, UInt32) Method

Definition

Returns the number of properties in a specified collection.

public:
 int GetPropertyCount(System::String ^ collectionPath, [Runtime::InteropServices::Out] System::UInt32 % propertyCount);
int GetPropertyCount(std::wstring const & collectionPath, [Runtime::InteropServices::Out] unsigned int & propertyCount);
public int GetPropertyCount (string collectionPath, out uint propertyCount);
abstract member GetPropertyCount : string * uint32 -> int
Public Function GetPropertyCount (collectionPath As String, ByRef propertyCount As UInteger) As Integer

Parameters

collectionPath
String

[in] The path of the collection.

propertyCount
UInt32

[out] The number of properties in the collection.

Returns

Returns S_OK if the property count was returned. If the collection does not exist, the method returns E_INVALIDARG.

Implements

Remarks

If there is a default property in the collection, then it is added to the total number of properties.

Applies to