FlavoredProjectFactory.PreCreateForOuter Method
Creates an instance of the project.
Namespace: Microsoft.VisualStudio.Shell.Flavor
Assembly: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
'宣言
Protected MustOverride Function PreCreateForOuter ( _
outerProject As Object _
) As Object
'使用
Dim outerProject As Object
Dim returnValue As Object
returnValue = Me.PreCreateForOuter(outerProject)
protected abstract Object PreCreateForOuter(
Object outerProject
)
protected:
virtual Object^ PreCreateForOuter(
Object^ outerProject
) abstract
protected abstract function PreCreateForOuter(
outerProject : Object
) : Object
Parameters
outerProject
Type: System.ObjectThe outermost project, or a null reference (Nothing in Visual Basic) if the outer project is being created.
Return Value
Type: System.Object
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
This method is abstract. When implemented in a derived class, creates an inner project and sets the outer project's inner references to it. Initialization should be performed in the InitializeForOuter method.
Permissions
- 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.