Share via


IVsAggregatableProjectCorrected.InitializeForOuter Method

Called by the owner, the outer project subtype, to have the owned project, the inner project subtype, to do its initialization work.

Namespace:  Microsoft.VisualStudio.Shell.Flavor
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Function InitializeForOuter ( _
    pszFilename As String, _
    pszLocation As String, _
    pszName As String, _
    grfCreateFlags As UInteger, _
    ByRef iidProject As Guid, _
    <OutAttribute> ByRef ppvProject As IntPtr, _
    <OutAttribute> ByRef pfCanceled As Integer _
) As Integer
int InitializeForOuter(
    string pszFilename,
    string pszLocation,
    string pszName,
    uint grfCreateFlags,
    ref Guid iidProject,
    out IntPtr ppvProject,
    out int pfCanceled
)
int InitializeForOuter(
    String^ pszFilename, 
    String^ pszLocation, 
    String^ pszName, 
    unsigned int grfCreateFlags, 
    Guid% iidProject, 
    [OutAttribute] IntPtr% ppvProject, 
    [OutAttribute] int% pfCanceled
)
abstract InitializeForOuter : 
        pszFilename:string * 
        pszLocation:string * 
        pszName:string * 
        grfCreateFlags:uint32 * 
        iidProject:Guid byref * 
        ppvProject:IntPtr byref * 
        pfCanceled:int byref -> int
function InitializeForOuter(
    pszFilename : String, 
    pszLocation : String, 
    pszName : String, 
    grfCreateFlags : uint, 
    iidProject : Guid, 
    ppvProject : IntPtr, 
    pfCanceled : int
) : int

Parameters

  • pszFilename
    Type: String

    [in] Project file name of the project to be initialized.

  • pszLocation
    Type: String

    [out] Location of the initialized project file.

  • pszName
    Type: String

    [in] Pointer to a null-terminated string containing the name.

  • grfCreateFlags
    Type: UInt32

    [in] Controls how a project is created or opened. Values are taken from the __VSCREATEPROJFLAGS enumeration.

  • iidProject
    Type: Guid%

    [in] Identifier of the interface of the returned ppvProject.

  • ppvProject
    Type: IntPtr%

    [out, iid_is(iidProject)] Pointer to the interface specified by iidProject.

  • pfCanceled
    Type: Int32%

    [out] Pointer to a flag where true indicates canceled.

Return Value

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

.NET Framework Security

See Also

Reference

IVsAggregatableProjectCorrected Interface

Microsoft.VisualStudio.Shell.Flavor Namespace