WritableSettingsStore.DeleteCollection(String) Method

Definition

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.

public:
 abstract bool DeleteCollection(System::String ^ collectionPath);
public:
 abstract bool DeleteCollection(Platform::String ^ collectionPath);
 abstract bool DeleteCollection(std::wstring const & collectionPath);
public abstract bool DeleteCollection (string collectionPath);
abstract member DeleteCollection : string -> bool
Public MustOverride Function DeleteCollection (collectionPath As String) As Boolean

Parameters

collectionPath
String

Path of the collection to be deleted.

Returns

Result of the deletion.

Applies to