Partager via


IVsWritableSettingsStore.DeleteProperty(String, String) Method

Definition

Deletes a property in a collection.

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

Parameters

collectionPath
String

[in] The path to the collection.

propertyName
String

[in] The property to delete.

Returns

Returns S_OK if the property was deleted, or S_FALSE if the property or collection does not exist.

Remarks

This method is safe to access from any thread.

Applies to