Aracılığıyla paylaş


IVsSolution.CreateSolution Yöntem (String, String, UInt32)

 

Yeni bir çözüm oluşturur.

Ad Alanı:   Microsoft.VisualStudio.Shell.Interop
Derleme:  Microsoft.VisualStudio.Shell.Interop (Microsoft.VisualStudio.Shell.Interop.dll içinde)

Sözdizimi

int CreateSolution(
    string lpszLocation,
    string lpszName,
    uint grfCreateFlags
)
int CreateSolution(
    String^ lpszLocation,
    String^ lpszName,
    unsigned int grfCreateFlags
)
abstract CreateSolution : 
        lpszLocation:string *
        lpszName:string *
        grfCreateFlags:uint32 -> int
Function CreateSolution (
    lpszLocation As String,
    lpszName As String,
    grfCreateFlags As UInteger
) As Integer

Parametreler

  • lpszLocation
    Type: System.String

    [, benzersiz] Dosya adı hariç çözüm yolu.

  • lpszName
    Type: System.String

    [in] Uzantısı hariç dosya adı.

  • grfCreateFlags
    Type: System.UInt32

    [, benzersiz] Yeni bir çözüm nasıl oluşturulacağını denetler. Bir listesi için grfCreateFlags değerler, bakın __VSCREATESOLUTIONFLAGS.

Dönüş Değeri

Type: System.Int32

Yöntem başarılı olursa, döndürür S_OK. Başarısız olursa, bir hata kodu döndürür.

Notlar

COM imza

Vsshell.idl:

HRESULT IVsSolution::CreateSolution(
   [in, unique] LPCOLESTR lpszLocation,
   [in, unique] LPCOLESTR lpszName,
   [in] VSCREATESOLUTIONFLAGS grfCreateFlags
);

Ayrıca bkz.

IVsSolution Arabirim
Microsoft.VisualStudio.Shell.Interop Ad Alanı

Başa dön