Compartir a través de


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: String

    Collection that contains the property to be deleted.

  • propertyName
    Type: String

    Name of the property.

Return Value

Type: Boolean

.NET Framework Security

See Also

Reference

WritableSettingsStore Class

Microsoft.VisualStudio.Settings Namespace