Compartir a través de


SettingsStore.GetSubCollectionCount Method

Returns the number of sub-collections under the given collection.

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

Syntax

'Declaration
Public MustOverride Function GetSubCollectionCount ( _
    collectionPath As String _
) As Integer
public abstract int GetSubCollectionCount(
    string collectionPath
)
public:
virtual int GetSubCollectionCount(
    String^ collectionPath
) abstract
abstract GetSubCollectionCount : 
        collectionPath:string -> int
public abstract function GetSubCollectionCount(
    collectionPath : String
) : int

Parameters

  • collectionPath
    Type: String

    Path of the collection.

Return Value

Type: Int32
Number of sub-collections is returned.

Exceptions

Exception Condition
ArgumentException

Throws this exception if the collection does not exist.

.NET Framework Security

See Also

Reference

SettingsStore Class

Microsoft.VisualStudio.Settings Namespace