DataSourceCollection.CreateInstance Method (IVsUICollection, DataSourceParameters)
Creates an instance of a DataSourceCollection using the given DataSourceParametrs. The DataSourceCollection will be read-only if uiCollection cannot 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 CreateInstance ( _
uiCollection As IVsUICollection, _
parameters As DataSourceParameters _
) As DataSourceCollection
'Utilisation
Dim uiCollection As IVsUICollection
Dim parameters As DataSourceParameters
Dim returnValue As DataSourceCollection
returnValue = DataSourceCollection.CreateInstance(uiCollection, _
parameters)
public static DataSourceCollection CreateInstance(
IVsUICollection uiCollection,
DataSourceParameters parameters
)
public:
static DataSourceCollection^ CreateInstance(
IVsUICollection^ uiCollection,
DataSourceParameters^ parameters
)
static member CreateInstance :
uiCollection:IVsUICollection *
parameters:DataSourceParameters -> DataSourceCollection
public static function CreateInstance(
uiCollection : IVsUICollection,
parameters : DataSourceParameters
) : DataSourceCollection
Parameters
- uiCollection
Type: Microsoft.VisualStudio.Shell.Interop.IVsUICollection
Gel collection to wrap.
- parameters
Type: Microsoft.Internal.VisualStudio.PlatformUI.DataSourceParameters
Parameters governing the wrapper's behavior.
Return Value
Type: Microsoft.Internal.VisualStudio.PlatformUI.DataSourceCollection
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.