IVsAddProjectItemDlg2.AddExistingProjectItems(UInt32, Guid, IVsProject, UInt32, Guid, String, Guid, UInt32, String[]) 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.
Ajoute des éléments de projet existants
public:
int AddExistingProjectItems(System::UInt32 itemidLoc, Guid % rguidProject, Microsoft::VisualStudio::Shell::Interop::IVsProject ^ pProject, System::UInt32 grfEditorFlags, Guid % rguidEditorType, System::String ^ pszPhysicalView, Guid % rguidLogicalView, System::UInt32 cFilesToAdd, cli::array <System::String ^> ^ rgpszFilesToAdd);
public int AddExistingProjectItems (uint itemidLoc, ref Guid rguidProject, Microsoft.VisualStudio.Shell.Interop.IVsProject pProject, uint grfEditorFlags, ref Guid rguidEditorType, string pszPhysicalView, ref Guid rguidLogicalView, uint cFilesToAdd, string[] rgpszFilesToAdd);
abstract member AddExistingProjectItems : uint32 * Guid * Microsoft.VisualStudio.Shell.Interop.IVsProject * uint32 * Guid * string * Guid * uint32 * string[] -> int
Public Function AddExistingProjectItems (itemidLoc As UInteger, ByRef rguidProject As Guid, pProject As IVsProject, grfEditorFlags As UInteger, ByRef rguidEditorType As Guid, pszPhysicalView As String, ByRef rguidLogicalView As Guid, cFilesToAdd As UInteger, rgpszFilesToAdd As String()) As Integer
Paramètres
- itemidLoc
- UInt32
[in] Identificateur d'élément du dossier du projet auquel les éléments doivent être ajoutés.
- rguidProject
- Guid
[in] ID unique du projet.
- pProject
- IVsProject
[in] Pointeur vers l'interface IVsProject sur laquelle l'ajout d'élément est appelé.
- grfEditorFlags
- UInt32
[in] Indicateurs dont les valeurs sont extraites de l'énumération __VSSPECIFICEDITORFLAGS.
- rguidEditorType
- Guid
[in] Type d'éditeur à utiliser pour l'ouverture (si pris en charge).
- pszPhysicalView
- String
[in] Vue physique utilisée pour ouvrir (si prise en charge).
- rguidLogicalView
- Guid
[in] Vue logique utilisée pour ouvrir (si prise en charge).
- cFilesToAdd
- UInt32
[in] Nombre de fichiers à ajouter.
- rgpszFilesToAdd
- String[]
[in, size_is (cFilesToAdd)] Tableau de fichiers dont le nombre réel est cFilesToAdd .
Retours
Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.
Remarques
Signature COM
À partir de vsshell. idl :
HRESULT IVsAddProjectItemDlg2::AddExistingProjectItems(
[in] VSITEMID itemidLoc,
[in] REFGUID rguidProject,
[in] IVsProject *pProject,
[in] VSSPECIFICEDITORFLAGS grfEditorFlags,
[in] REFGUID rguidEditorType,
[in] LPCOLESTR pszPhysicalView,
[in] REFGUID rguidLogicalView,
[in] ULONG cFilesToAdd,
[in, size_is(cFilesToAdd)] LPCOLESTR rgpszFilesToAdd[]
);