Partager via


IVsWritableSettingsStore.DeleteCollection Method

Deletes a collection, as well as all its properties and sub-collections.

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 DeleteCollection ( _
    collectionPath As String _
) As Integer
int DeleteCollection(
    string collectionPath
)
int DeleteCollection(
    [InAttribute] String^ collectionPath
)
abstract DeleteCollection : 
        collectionPath:string -> int
function DeleteCollection(
    collectionPath : String
) : int

Parameters

  • collectionPath
    Type: String

    [in] The path to the collection to delete.

Return Value

Type: Int32
Returns S_OK if the collection was deleted. If the collection does not exist or an empty string ("") is passed, returns S_FALSE.

.NET Framework Security

See Also

Reference

IVsWritableSettingsStore Interface

Microsoft.VisualStudio.Shell.Interop Namespace