다음을 통해 공유


SettingsStore.GetSubCollectionCount Method

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

Namespace:  Microsoft.VisualStudio.Settings
Assembly:  Microsoft.VisualStudio.Settings (in Microsoft.VisualStudio.Settings.dll)

Syntax

‘선언
Public MustOverride Function GetSubCollectionCount ( _
    collectionPath As String _
) As Integer
‘사용 방법
Dim instance As SettingsStore
Dim collectionPath As String
Dim returnValue As Integer

returnValue = instance.GetSubCollectionCount(collectionPath)
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

Return Value

Type: System.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

SettingsStore Members

Microsoft.VisualStudio.Settings Namespace