Share via


IToolboxItemDiscovery.GetItemInfo(IToolboxType) 方法

定義

傳回對應至指定類型的 IToolboxItemInfo。

public:
 Microsoft::VisualStudio::Shell::IToolboxItemInfo ^ GetItemInfo(Microsoft::VisualStudio::Shell::IToolboxType ^ type);
public:
 Microsoft::VisualStudio::Shell::IToolboxItemInfo ^ GetItemInfo(Microsoft::VisualStudio::Shell::IToolboxType ^ type);
Microsoft::VisualStudio::Shell::IToolboxItemInfo GetItemInfo(Microsoft::VisualStudio::Shell::IToolboxType const & type);
public Microsoft.VisualStudio.Shell.IToolboxItemInfo GetItemInfo (Microsoft.VisualStudio.Shell.IToolboxType type);
abstract member GetItemInfo : Microsoft.VisualStudio.Shell.IToolboxType -> Microsoft.VisualStudio.Shell.IToolboxItemInfo
Public Function GetItemInfo (type As IToolboxType) As IToolboxItemInfo

參數

type
IToolboxType

有效的工具箱控制件類型。

傳回

此類型的相關信息,如果類型不是這個提供者所辨識的有效工具箱控件類型,則為 null。

備註

此方法應該檢查自變數的類型 type ,如果它需要根據類型來源提供不同的資訊, (例如擴充功能 SDK) 。 請參閱衍生自 IToolboxType 的 IToolbox*Type 介面。

這個方法可以在背景線程上呼叫。

適用於