IVsComponentSelectorDlg.ComponentSelectorDlg 方法
用于由包提供用户可以将元素添加到指定的项目的对话框。
命名空间: Microsoft.VisualStudio.Shell.Interop
程序集: Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)
语法
声明
Function ComponentSelectorDlg ( _
grfFlags As UInteger, _
pUser As IVsComponentUser, _
lpszDlgTitle As String, _
lpszHelpTopic As String, _
ByRef rguidShowOnlyThisTab As Guid, _
ByRef rguidStartOnThisTab As Guid, _
pszMachineName As String, _
cTabInitializers As UInteger, _
prgcstiTabInitializers As VSCOMPONENTSELECTORTABINIT(), _
pszBrowseFilters As String, _
<OutAttribute> ByRef pbstrBrowseLocation As String _
) As Integer
int ComponentSelectorDlg(
uint grfFlags,
IVsComponentUser pUser,
string lpszDlgTitle,
string lpszHelpTopic,
ref Guid rguidShowOnlyThisTab,
ref Guid rguidStartOnThisTab,
string pszMachineName,
uint cTabInitializers,
VSCOMPONENTSELECTORTABINIT[] prgcstiTabInitializers,
string pszBrowseFilters,
out string pbstrBrowseLocation
)
参数
- grfFlags
类型:System.UInt32
[in] VSCOMSEL_* 标志。有关 VSCOMSEL_ 的更多信息,请参见 __VSCOMPSELFLAGS。
- pUser
类型:Microsoft.VisualStudio.Shell.Interop.IVsComponentUser
[in] AddComponent 个名为的接口。
- lpszDlgTitle
类型:System.String
[in] 对话框声明 (nullnull 引用(在 Visual Basic 中为 Nothing) == “组件选择器”)。
- lpszHelpTopic
类型:System.String
[in] F1 帮助主题 (nullnull 引用(在 Visual Basic 中为 Nothing) == “VS.ComponentPicker”)。
- rguidShowOnlyThisTab
类型:System.Guid%
[in] 完整显示选项。
- rguidStartOnThisTab
类型:System.Guid%
[in] 显示对话框时要使用的选项开始。
- pszMachineName
类型:System.String
[in] 为 null 指针已停止包含设备名称的字符串。枚举该计算机的 COM 组件。
- cTabInitializers
类型:System.UInt32
[in] 选项在 prgcstiTabInitializers的初始化结构的数字。
- prgcstiTabInitializers
类型:array<Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORTABINIT[]
[in] 指定选项初始化信息。
- pszBrowseFilters
类型:System.String
[in] 浏览到包含的 null 终止的字符串的指针筛选。
- pbstrBrowseLocation
类型:System.String%
[in, out] 在输入, xxxx。在输出,转到包含浏览位置的字符串的指针。列出了筛选使用在 “browse…" 对话框。目录 (初始/返回值) 启动 “browse…”对话框。
返回值
类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 vsshell.idl:
HRESULT IVsComponentSelectorDlg::ComponentSelectorDlg(
[in] VSCOMPSELFLAGS grfFlags,
[in] IVsComponentUser *pUser,
[in] LPCOLESTR lpszDlgTitle,
[in] LPCOLESTR lpszHelpTopic,
[in] REFGUID rguidShowOnlyThisTab,
[in] REFGUID rguidStartOnThisTab,
[in] LPCOLESTR pszMachineName,
[in] ULONG cTabInitializers,
[in] VSCOMPONENTSELECTORTABINIT *prgcstiTabInitializers,
[in] LPCOLESTR pszBrowseFilters,
[in, out] BSTR *pbstrBrowseLocation
);
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。