更改属性页的初始显示在 属性 窗口中。您可以获取接口的实例。 SVsPropertyPageFrame (SID_SVsPropertyPageFrame) services。
命名空间: Microsoft.VisualStudio.Shell.Interop
程序集: Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)
语法
声明
<InterfaceTypeAttribute()> _
<GuidAttribute("BC039978-213E-4CA0-81C4-10EDF2AF2D66")> _
Public Interface IVsPropertyPageFrame
[InterfaceTypeAttribute()]
[GuidAttribute("BC039978-213E-4CA0-81C4-10EDF2AF2D66")]
public interface IVsPropertyPageFrame
IVsPropertyPageFrame 类型公开以下成员。
方法
| 名称 | 说明 | |
|---|---|---|
![]() |
CanShowPropertyPages | 验证属性页中显示。 |
![]() |
HideFrame | 隐藏属性页。 |
![]() |
ReportError | 报告 COM (hresult) 错误。 |
![]() |
ShowFrame | 显示 CLSID 指定的属性页。 |
![]() |
ShowFrameDISPID | 显示调度 ID 指定的属性页 (dispid)。 |
![]() |
Update | 更新属性页。 |
![]() |
UpdateAfterApply | 更新属性页,在任何属性页值已应用于基础对象后 (在完成所有后调用 ApplyIPropertyPage 接口的方法)。 |
页首
备注
,只有在要更改初始属性页显示,请使用此接口。否则,使环境处理属性页显示。
.gif)