Поделиться через


IVsSolution.CreateSolution Method

Creates a new solution.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function CreateSolution ( _
    lpszLocation As String, _
    lpszName As String, _
    grfCreateFlags As UInteger _
) As Integer
int CreateSolution(
    string lpszLocation,
    string lpszName,
    uint grfCreateFlags
)
int CreateSolution(
    [InAttribute] String^ lpszLocation, 
    [InAttribute] String^ lpszName, 
    [InAttribute] unsigned int grfCreateFlags
)
abstract CreateSolution : 
        lpszLocation:string * 
        lpszName:string * 
        grfCreateFlags:uint32 -> int 
function CreateSolution(
    lpszLocation : String, 
    lpszName : String, 
    grfCreateFlags : uint
) : int

Parameters

  • lpszLocation
    Type: System.String
    [in, unique] Path to the solution, excluding the filename.
  • lpszName
    Type: System.String
    [in] Filename, excluding the extension.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

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

.NET Framework Security

See Also

Reference

IVsSolution Interface

Microsoft.VisualStudio.Shell.Interop Namespace