DesignerWindowPane.IVsExtensibleObject.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

‘선언
Private Function GetAutomationObject ( _
    propName As String, _
    <OutAttribute> ByRef extObj As Object _
) As Integer Implements IVsExtensibleObject.GetAutomationObject
‘사용 방법
Dim instance As DesignerWindowPane
Dim propName As String
Dim extObj As Object
Dim returnValue As Integer

returnValue = CType(instance, IVsExtensibleObject).GetAutomationObject(propName, _
    extObj)
int IVsExtensibleObject.GetAutomationObject(
    string propName,
    out Object extObj
)
private:
virtual int GetAutomationObject(
    String^ propName, 
    [OutAttribute] Object^% extObj
) sealed = IVsExtensibleObject::GetAutomationObject
private abstract GetAutomationObject : 
        propName:string * 
        extObj:Object byref -> int 
private override GetAutomationObject : 
        propName:string * 
        extObj:Object byref -> int 
JScript does not support explicit interface implementations.

Parameters

  • propName
    Type: System.String
    The name of the automation object. This can be nulla null reference (Nothing in Visual Basic) or an empty string.

Return Value

Type: System.Int32
S_OK if successful.

Implements

IVsExtensibleObject.GetAutomationObject(String, Object%)

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.

.NET Framework Security

See Also

Reference

DesignerWindowPane Class

DesignerWindowPane Members

Microsoft.VisualStudio.Shell.Design Namespace

IDesignerHost

LOGVIEWID_Designer