DesignerWindowPane.GetAutomationObject Method

Gets the automation object for this window pane.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'宣言
Protected Overridable Function GetAutomationObject ( _
    propName As String _
) As Object
'使用
Dim propName As String
Dim returnValue As Object

returnValue = Me.GetAutomationObject(propName)
protected virtual Object GetAutomationObject(
    string propName
)
protected:
virtual Object^ GetAutomationObject(
    String^ propName
)
protected function GetAutomationObject(
    propName : String
) : Object

Parameters

  • propName
    Type: System.String

    The name of the automation object. This can be a null reference (Nothing in Visual Basic) or an empty string.

Return Value

Type: System.Object

The automation object, or a null reference (Nothing in Visual Basic).

Remarks

The default implementation returns IDesignerHost if the name is empty or LOGVIEWID_Designer. If it is any other value, this method will assume the value is a type name, try to obtain the type, and if successful, call GetService on the design surface for the type.

Permissions

See Also

Reference

DesignerWindowPane Class

DesignerWindowPane Members

Microsoft.VisualStudio.Shell.Design Namespace

IDesignerHost

LOGVIEWID_Designer