Partager via


IVsWritableSettingsStore.DeleteProperty Method

Deletes a property in a collection.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assemblies:   Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Function DeleteProperty ( _
    collectionPath As String, _
    propertyName As String _
) As Integer
int DeleteProperty(
    string collectionPath,
    string propertyName
)
int DeleteProperty(
    [InAttribute] String^ collectionPath, 
    [InAttribute] String^ propertyName
)
abstract DeleteProperty : 
        collectionPath:string * 
        propertyName:string -> int
function DeleteProperty(
    collectionPath : String, 
    propertyName : String
) : int

Parameters

  • collectionPath
    Type: String

    [in] The path to the collection.

  • propertyName
    Type: String

    [in] The property to delete.

Return Value

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

.NET Framework Security

See Also

Reference

IVsWritableSettingsStore Interface

Microsoft.VisualStudio.Shell.Interop Namespace