DesignerWindowPane.IVsExtensibleObject.GetAutomationObject 方法

获取此窗格的自动化对象。

命名空间:  Microsoft.VisualStudio.Shell.Design
程序集:  Microsoft.VisualStudio.Shell.Design(在 Microsoft.VisualStudio.Shell.Design.dll 中)

语法

声明
Private Function GetAutomationObject ( _
    propName As String, _
    <OutAttribute> ByRef extObj As Object _
) As Integer Implements IVsExtensibleObject.GetAutomationObject
int IVsExtensibleObject.GetAutomationObject(
    string propName,
    out Object extObj
)

参数

  • propName
    类型:System.String
    自动化对象的名称。这可能是 nullnull 引用(在 Visual Basic 中为 Nothing) 或空字符串。

返回值

类型:System.Int32
S_OK ,如果成功。

实现

IVsExtensibleObject.GetAutomationObject(String, Object%)

备注

,如果名称为 null 或 LOGVIEWID_Designer,默认实现返回 IDesignerHost 。如果它是其他值,此方法假定该值是类型名称,尝试获取该类型,并且,如果成功,则会在该模型中 GetService 为类型图面。

.NET Framework 安全性

请参见

参考

DesignerWindowPane 类

Microsoft.VisualStudio.Shell.Design 命名空间

IDesignerHost

LOGVIEWID_Designer