Udostępnij za pośrednictwem


Metoda IVsSolution.CreateSolution — (String, String, UInt32)

 

Tworzy nowe rozwiązanie.

Przestrzeń nazw:   Microsoft.VisualStudio.Shell.Interop
Zestaw:  Microsoft.VisualStudio.Shell.Interop (w Microsoft.VisualStudio.Shell.Interop.dll)

Składnia

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

Parametry

  • lpszLocation
    Type: System.String

    [in, unikatowy] Ścieżka do rozwiązania, z wyjątkiem nazwy pliku.

  • lpszName
    Type: System.String

    [in] Nazwa pliku bez rozszerzenia.

Wartość zwracana

Type: System.Int32

Jeśli metoda zakończy się pomyślnie, zwraca S_OK. Jeśli nie, zwraca kod błędu.

Uwagi

Podpis COM

Z vsshell.idl:

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

Zobacz też

Interfejs IVsSolution
Przestrzeń nazw Microsoft.VisualStudio.Shell.Interop

Powrót do początku