DataSourceCollection.CreateReadOnlyInstance Method (IVsUICollection)
Creates an instance of a DataSourceCollection. 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 _
) As DataSourceCollection
'Utilisation
Dim uiCollection As IVsUICollection
Dim returnValue As DataSourceCollection
returnValue = DataSourceCollection.CreateReadOnlyInstance(uiCollection)
public static DataSourceCollection CreateReadOnlyInstance(
IVsUICollection uiCollection
)
public:
static DataSourceCollection^ CreateReadOnlyInstance(
IVsUICollection^ uiCollection
)
static member CreateReadOnlyInstance :
uiCollection:IVsUICollection -> DataSourceCollection
public static function CreateReadOnlyInstance(
uiCollection : IVsUICollection
) : DataSourceCollection
Parameters
- uiCollection
Type: Microsoft.VisualStudio.Shell.Interop.IVsUICollection
Gel collection to wrap.
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.