Package.IVsPackage.GetAutomationObject(String, Object) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient un objet d'automation convivial pour ce package.
virtual int Microsoft.VisualStudio.Shell.Interop.IVsPackage.GetAutomationObject(System::String ^ propName, [Runtime::InteropServices::Out] System::Object ^ % auto) = Microsoft::VisualStudio::Shell::Interop::IVsPackage::GetAutomationObject;
int Microsoft.VisualStudio.Shell.Interop.IVsPackage.GetAutomationObject(std::wstring const & propName, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & auto);
int IVsPackage.GetAutomationObject (string propName, out object auto);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsPackage.GetAutomationObject : string * obj -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsPackage.GetAutomationObject : string * obj -> int
Function GetAutomationObject (propName As String, ByRef auto As Object) As Integer Implements IVsPackage.GetAutomationObject
Paramètres
- propName
- String
Chaîne contenant le nom de la propriété automation.
- auto
- Object
[out] Retourne l'objet d'automation.
Retours
Si la méthode réussit, S_OK ; sinon, code d'erreur.
Implémente
Remarques
L’implémentation par défaut retourne auto comme null si propName a la valeur null , ce qui indique qu’il n’y a pas d’objet Automation par défaut. Si propName n’est pas null , il parcourt les attributs de métadonnées recherchant une page d’options dont le nom est au format : <Category>.<Name> . Si la page d’options a ce format et qu’elle indique qu’elle prend en charge l’automatisation, son objet Automation est retourné.