Partager via


DataSourceCollection.CreateReadOnlyInstance Method (IVsUICollection, DataSourceParameters)

Creates an instance of a DataSourceCollection using the given DataSourceParameters. The DataSourceCollection will be read-only regardless of whether uiCollection can be converted to IVsUIDynamicCollection.

Namespace:  Microsoft.Internal.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'Déclaration
Public Shared Function CreateReadOnlyInstance ( _
    uiCollection As IVsUICollection, _
    parameters As DataSourceParameters _
) As DataSourceCollection
'Utilisation
Dim uiCollection As IVsUICollection
Dim parameters As DataSourceParameters
Dim returnValue As DataSourceCollection

returnValue = DataSourceCollection.CreateReadOnlyInstance(uiCollection, _
    parameters)
public static DataSourceCollection CreateReadOnlyInstance(
    IVsUICollection uiCollection,
    DataSourceParameters parameters
)
public:
static DataSourceCollection^ CreateReadOnlyInstance(
    IVsUICollection^ uiCollection, 
    DataSourceParameters^ parameters
)
static member CreateReadOnlyInstance : 
        uiCollection:IVsUICollection * 
        parameters:DataSourceParameters -> DataSourceCollection 
public static function CreateReadOnlyInstance(
    uiCollection : IVsUICollection, 
    parameters : DataSourceParameters
) : DataSourceCollection

Parameters

Return Value

Type: Microsoft.Internal.VisualStudio.PlatformUI.DataSourceCollection

.NET Framework Security

See Also

Reference

DataSourceCollection Class

DataSourceCollection Members

CreateReadOnlyInstance Overload

Microsoft.Internal.VisualStudio.PlatformUI Namespace