Package.IVsPackage.GetAutomationObject Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets an automation-friendly object for this package.

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

int IVsPackage.GetAutomationObject(
	string propName,
	out Object auto


Type: System.String
String containing the automation property name.
Type: System.Object
[out] Returns the automation object.

Return Value

Type: System.Int32
If the method succeeds, S_OK, otherwise an error code.


IVsPackage.GetAutomationObject(String, Object)

The default implementation will return auto as null if propName is null, indicating that there is no default automation object. If propName is non-null, it will walk the metadata attributes searching for an options page that has a name of the format: <Category>.<Name>. If the options page has this format and indicates that it supports automation, its automation object will be returned.

Community Additions