IVsSolutionLoadManager.OnBeforeOpenProject(Guid, Guid, String, IVsSolutionLoadManagerSupport) 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.
Déclenché avant l'ouverture de chaque projet.
public:
int OnBeforeOpenProject(Guid % guidProjectID, Guid % guidProjectType, System::String ^ pszFileName, Microsoft::VisualStudio::Shell::Interop::IVsSolutionLoadManagerSupport ^ pSLMgrSupport);
public int OnBeforeOpenProject (ref Guid guidProjectID, ref Guid guidProjectType, string pszFileName, Microsoft.VisualStudio.Shell.Interop.IVsSolutionLoadManagerSupport pSLMgrSupport);
abstract member OnBeforeOpenProject : Guid * Guid * string * Microsoft.VisualStudio.Shell.Interop.IVsSolutionLoadManagerSupport -> int
Public Function OnBeforeOpenProject (ByRef guidProjectID As Guid, ByRef guidProjectType As Guid, pszFileName As String, pSLMgrSupport As IVsSolutionLoadManagerSupport) As Integer
Paramètres
- guidProjectID
- Guid
GUID du projet individuel à ouvrir.
- guidProjectType
- Guid
GUID du type de projet à ouvrir (par exemple, Visual Basic ou C#).
- pszFileName
- String
Nom du fichier projet.
- pSLMgrSupport
- IVsSolutionLoadManagerSupport
Service IVsSolutionLoadManagerSupport.
Retours
Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.
Remarques
En général, un gestionnaire de chargement de solution utilise cette méthode pour définir la priorité de chargement du projet en appelant SetProjectLoadPriority .