WritableSettingsStore.DeleteProperty Method
Deletes the given property from the collection. If the property or the collection does not exist then the method returns false.
Namespace: Microsoft.VisualStudio.Settings
Assemblies: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Microsoft.VisualStudio.Settings (in Microsoft.VisualStudio.Settings.dll)
Syntax
'Declaration
Public MustOverride Function DeleteProperty ( _
collectionPath As String, _
propertyName As String _
) As Boolean
public abstract bool DeleteProperty(
string collectionPath,
string propertyName
)
public:
virtual bool DeleteProperty(
String^ collectionPath,
String^ propertyName
) abstract
abstract DeleteProperty :
collectionPath:string *
propertyName:string -> bool
public abstract function DeleteProperty(
collectionPath : String,
propertyName : String
) : boolean
Parameters
collectionPath
Type: StringCollection that contains the property to be deleted.
propertyName
Type: StringName of the property.
Return Value
Type: Boolean
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.