Partager via


IVsSettingsStore.GetPropertyCount Method

Returns the number of properties in a specified collection.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assemblies:   Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

Syntax

'Declaration
Function GetPropertyCount ( _
    collectionPath As String, _
    <OutAttribute> ByRef propertyCount As UInteger _
) As Integer
int GetPropertyCount(
    string collectionPath,
    out uint propertyCount
)
int GetPropertyCount(
    [InAttribute] String^ collectionPath, 
    [OutAttribute] unsigned int% propertyCount
)
abstract GetPropertyCount : 
        collectionPath:string * 
        propertyCount:uint32 byref -> int
function GetPropertyCount(
    collectionPath : String, 
    propertyCount : uint
) : int

Parameters

  • collectionPath
    Type: String

    [in] The path of the collection.

  • propertyCount
    Type: UInt32%

    [out] The number of properties in the collection.

Return Value

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

Remarks

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

.NET Framework Security

See Also

Reference

IVsSettingsStore Interface

Microsoft.VisualStudio.Shell.Interop Namespace