다음을 통해 공유


WritableSettingsStore.DeleteCollection Method

Deletes the given collection recursively deleting all of the sub-collections and properties in it. If the collection does not exist or an empty string ("") is passed then the method returns false.

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

Syntax

‘선언
Public MustOverride Function DeleteCollection ( _
    collectionPath As String _
) As Boolean
‘사용 방법
Dim instance As WritableSettingsStore
Dim collectionPath As String
Dim returnValue As Boolean

returnValue = instance.DeleteCollection(collectionPath)
public abstract bool DeleteCollection(
    string collectionPath
)
public:
virtual bool DeleteCollection(
    String^ collectionPath
) abstract
abstract DeleteCollection : 
        collectionPath:string -> bool 
public abstract function DeleteCollection(
    collectionPath : String
) : boolean

Parameters

  • collectionPath
    Type: System.String
    Path of the collection to be deleted.

Return Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

WritableSettingsStore Class

WritableSettingsStore Members

Microsoft.VisualStudio.Settings Namespace