次の方法で共有


FlavoredProjectFactory.IVsAggregatableProjectFactory.PreCreateForOuter Method

Creates an aggregatable inner project.

Namespace:  Microsoft.VisualStudio.Shell.Flavor
Assemblies:   Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)

Syntax

'宣言
Private Function PreCreateForOuter ( _
    outerProject As Object, _
    <OutAttribute> ByRef project As Object _
) As Integer Implements IVsAggregatableProjectFactory.PreCreateForOuter
'使用
Dim instance As FlavoredProjectFactory
Dim outerProject As Object
Dim project As Object
Dim returnValue As Integer

returnValue = CType(instance, IVsAggregatableProjectFactory).PreCreateForOuter(outerProject, _
    project)
int IVsAggregatableProjectFactory.PreCreateForOuter(
    Object outerProject,
    out Object project
)
private:
virtual int PreCreateForOuter(
    Object^ outerProject, 
    [OutAttribute] Object^% project
) sealed = IVsAggregatableProjectFactory::PreCreateForOuter
private abstract PreCreateForOuter : 
        outerProject:Object * 
        project:Object byref -> int 
private override PreCreateForOuter : 
        outerProject:Object * 
        project:Object byref -> int 
JScript does not support explicit interface implementations.

Parameters

  • outerProject
    Type: System.Object
    The outer project, or nulla null reference (Nothing in Visual Basic) if the outer project is to be created.

Return Value

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

Implements

IVsAggregatableProjectFactory.PreCreateForOuter(Object, Object%)

Remarks

Flavored projects may be nested several levels deep. The outerProject parameter should always be the outermost project if one exists.

This method does nothing but create the inner project so that it can be aggregated. Initialization should be performed in the InitializeForOuter method.

.NET Framework Security

See Also

Reference

FlavoredProjectFactory Class

FlavoredProjectFactory Members

Microsoft.VisualStudio.Shell.Flavor Namespace