Share via


WritableSettingsStore.DeleteProperty(String, String) Method

Definition

Deletes the given property from the collection. If the property or the collection does not exist then the method returns false.

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

Parameters

collectionPath
String

Collection that contains the property to be deleted.

propertyName
String

Name of the property.

Returns

Result of the deletion.

Remarks

This method is safe to access from any thread.

Applies to