Partager via


IVsWritableSettingsStore.CreateCollection Method

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

Parameters

  • collectionPath
    Type: String

    [in] The path at which the collection should be created.

Return Value

Type: Int32
If the full path to the collection already exists, returns S_OK. If the empty string is passed to the method, it returns E_INVALIDARG.

.NET Framework Security

See Also

Reference

IVsWritableSettingsStore Interface

Microsoft.VisualStudio.Shell.Interop Namespace