Compartir a través de


IVsAggregatableProject.InitializeForOuter Method

Definition

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

public:
 int InitializeForOuter(System::String ^ pszFilename, System::String ^ pszLocation, System::String ^ pszName, System::UInt32 grfCreateFlags, Guid % iidProject, [Runtime::InteropServices::Out] IntPtr % ppvProject, [Runtime::InteropServices::Out] int % pfCanceled);
public int InitializeForOuter (string pszFilename, string pszLocation, string pszName, uint grfCreateFlags, ref Guid iidProject, out IntPtr ppvProject, out int pfCanceled);
abstract member InitializeForOuter : string * string * string * uint32 * Guid * nativeint * int -> int
Public Function InitializeForOuter (pszFilename As String, pszLocation As String, pszName As String, grfCreateFlags As UInteger, ByRef iidProject As Guid, ByRef ppvProject As IntPtr, ByRef pfCanceled As Integer) As Integer

Parameters

pszFilename
String

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

pszLocation
String

[out] Location of the initialized project file.

pszName
String

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

grfCreateFlags
UInt32

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

iidProject
Guid

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

ppvProject
IntPtr

nativeint

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

pfCanceled
Int32

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

Returns

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsAggregatableProject::InitializeForOuter(  
   [in] LPCOLESTR pszFilename,  
   [in] LPCOLESTR pszLocation,  
   [in] LPCOLESTR pszName,  
   [in] VSCREATEPROJFLAGS grfCreateFlags,  
   [in] REFIID iidProject,  
   [out, iid_is(iidProject)] void **ppvProject,  
   [out] BOOL *pfCanceled  
);  

The owned project subtype should do all of its project creation work, similar to CreateProject, in your implementation of this method.

Applies to