VCProjectEngineObjectClass.CreateProject, méthode
Crée un projet.
Espace de noms : Microsoft.VisualStudio.VCProjectEngine
Assembly : Microsoft.VisualStudio.VCProjectEngine (dans Microsoft.VisualStudio.VCProjectEngine.dll)
Syntaxe
'Déclaration
Public Overridable Function CreateProject ( _
projectName As String _
) As Object
public virtual Object CreateProject(
string projectName
)
public:
virtual Object^ CreateProject(
[InAttribute] String^ projectName
)
abstract CreateProject :
projectName:string -> Object
override CreateProject :
projectName:string -> Object
public function CreateProject(
projectName : String
) : Object
Paramètres
- projectName
Type : System.String
Nom du projet
Valeur de retour
Type : System.Object
Objet.
Implémentations
VCProjectEngine.CreateProject(String)
Notes
N'instanciez pas VCProjectEngineObjectClass.Instanciez VCProjectEngineObject à la place, comme montré ci-dessous :
Dim Engine As VCProjectEngine
Engine = New VCProjectEngineObject()
Exemples
' compile with vbc /r:Microsoft.VisualStudio.VCProjectEngine.dll
Option Strict Off
Imports Microsoft.VisualStudio.VCProjectEngine
Module Module1
Sub Main()
Dim Engine As VCProjectEngine
Dim myproj As VCProject
Engine = New VCProjectEngineObject()
myproj = Engine.CreateProject("xxxj")
myproj.ProjectFile("c:\Documents and Settings\test\xxx.vcproj");
myproj.Save()
End Sub
End Module
Sécurité .NET Framework
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, consultez Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.