Partager via


IVsSolution2.GenerateNextDefaultProjectName Method (String, String, String%)

Generates the next default project name given a specific path.

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

Syntax

'Déclaration
Function GenerateNextDefaultProjectName ( _
    pszBaseName As String, _
    pszLocation As String, _
    <OutAttribute> ByRef pbstrProjectName As String _
) As Integer
'Utilisation
Dim instance As IVsSolution2
Dim pszBaseName As String
Dim pszLocation As String
Dim pbstrProjectName As String
Dim returnValue As Integer

returnValue = instance.GenerateNextDefaultProjectName(pszBaseName, _
    pszLocation, pbstrProjectName)
int GenerateNextDefaultProjectName(
    string pszBaseName,
    string pszLocation,
    out string pbstrProjectName
)
int GenerateNextDefaultProjectName(
    [InAttribute] String^ pszBaseName, 
    [InAttribute] String^ pszLocation, 
    [OutAttribute] String^% pbstrProjectName
)
abstract GenerateNextDefaultProjectName : 
        pszBaseName:string * 
        pszLocation:string * 
        pbstrProjectName:string byref -> int 
function GenerateNextDefaultProjectName(
    pszBaseName : String, 
    pszLocation : String, 
    pbstrProjectName : String
) : int

Parameters

  • pszLocation
    Type: System.String
    [in] Location of the project (path).
  • pbstrProjectName
    Type: System.String%
    [out] Pointer to returned project name.

Return Value

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

Implements

IVsSolution.GenerateNextDefaultProjectName(String, String, String%)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSolution2::GenerateNextDefaultProjectName(
   [in] LPCOLESTR pszBaseName, 
   [in] LPCOLESTR pszLocation, 
   [out] BSTR *pbstrProjectName
);

This method obtains the default name for the next project in the solution, for example, Project2.

.NET Framework Security

See Also

Reference

IVsSolution2 Interface

IVsSolution2 Members

GenerateNextDefaultProjectName Overload

Microsoft.VisualStudio.Shell.Interop Namespace