Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
'Usage
Dim instance As IVsSolution
Dim lpszLocation As String
Dim lpszName As String
Dim grfCreateFlags As UInteger
Dim returnValue As Integer
returnValue = instance.CreateSolution(lpszLocation, _
lpszName, grfCreateFlags)
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.
- grfCreateFlags
Type: System.UInt32
[in, unique] Controls how a new solution is created. For a list of grfCreateFlags values, see __VSCREATESOLUTIONFLAGS.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.