Поделиться через


IVsWritableSettingsStore.GetPropertyCount Method

Returns the number of properties in a specified collection.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  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: System.String
    [in] The path of the collection.
  • propertyCount
    Type: System.UInt32%
    [out] The number of properties in the collection.

Return Value

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

Implements

IVsSettingsStore.GetPropertyCount(String, UInt32%)

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

IVsWritableSettingsStore Interface

Microsoft.VisualStudio.Shell.Interop Namespace