Package.GetToolboxItemData Method

Gets the content of the data format for the specified toolbox item ID and data format.

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


Protected Overridable Function GetToolboxItemData ( _
    itemId As String, _
    format As DataFormats..::..Format _
) As Object
protected virtual Object GetToolboxItemData(
    string itemId,
    DataFormats..::..Format format
virtual Object^ GetToolboxItemData(
    String^ itemId, 
    DataFormats..::..Format^ format
abstract GetToolboxItemData : 
        itemId:string * 
        format:DataFormats..::..Format -> Object 
override GetToolboxItemData : 
        itemId:string * 
        format:DataFormats..::..Format -> Object 
protected function GetToolboxItemData(
    itemId : String, 
    format : DataFormats..::..Format
) : Object


Return Value

Type: System.Object
The content of the data format.


If this is not implemented, the shell will fall back to a call to ResetDefaults which invokes the ToolboxInitialized or ToolboxUpgraded events.

.NET Framework Security

See Also


Package Class

Microsoft.VisualStudio.Shell Namespace