IToolboxItemDiscoveryWithContext.GetItemInfo Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Gibt die IToolboxItemInfo zurück, die einem bestimmten Typ entspricht.
public:
Microsoft::VisualStudio::Shell::IToolboxItemInfo ^ GetItemInfo(Microsoft::VisualStudio::Shell::IToolboxType ^ type, Microsoft::VisualStudio::Shell::ToolboxItemDiscoveryContext context);
public:
Microsoft::VisualStudio::Shell::IToolboxItemInfo ^ GetItemInfo(Microsoft::VisualStudio::Shell::IToolboxType ^ type, Microsoft::VisualStudio::Shell::ToolboxItemDiscoveryContext context);
Microsoft::VisualStudio::Shell::IToolboxItemInfo GetItemInfo(Microsoft::VisualStudio::Shell::IToolboxType const & type, Microsoft::VisualStudio::Shell::ToolboxItemDiscoveryContext context);
public Microsoft.VisualStudio.Shell.IToolboxItemInfo GetItemInfo(Microsoft.VisualStudio.Shell.IToolboxType type, Microsoft.VisualStudio.Shell.ToolboxItemDiscoveryContext context);
abstract member GetItemInfo : Microsoft.VisualStudio.Shell.IToolboxType * Microsoft.VisualStudio.Shell.ToolboxItemDiscoveryContext -> Microsoft.VisualStudio.Shell.IToolboxItemInfo
Public Function GetItemInfo (type As IToolboxType, context As ToolboxItemDiscoveryContext) As IToolboxItemInfo
Parameter
- type
- IToolboxType
Der Typ.
- context
- ToolboxItemDiscoveryContext
Der Kontext.
Gibt zurück
Die Informationen zu diesem Typ oder NULL, wenn der Typ kein gültiger Toolbox-Steuerelementtyp ist, der von diesem Anbieter erkannt wird.
Hinweise
Diese Methode sollte den Typ des type Arguments überprüfen, wenn sie je nach Quelle des Typs (z. B. ein Erweiterungs-SDK) unterschiedliche Informationen bereitstellen muss. Weitere Informationen finden Sie unter IToolbox*Type-Schnittstellen, die von IToolboxType abgeleitet werden.
Diese Methode kann in einem Hintergrundthread aufgerufen werden.