DesignerWindowPane::IVsExtensibleObject::GetAutomationObject Method (String^, Object^)

 

Gets the automation object for this window pane.

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

private:
virtual int GetAutomationObject(
	String^ propName,
	[OutAttribute] Object^% extObj
) sealed = IVsExtensibleObject::GetAutomationObject

Parameters

propName
Type: System::String^

The name of the automation object. This can be null or an empty string.

extObj
Type: System::Object^

The automation object.

Return Value

Type: System::Int32

S_OK if successful.

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.

Return to top
Show: