FlavoredProjectFactory.PreCreateForOuter Method
Creates an instance of the 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
'宣告
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
abstract PreCreateForOuter :
outerProject:Object -> Object
protected abstract function PreCreateForOuter(
outerProject : Object
) : Object
Parameters
- outerProject
Type: System.Object
The outermost project, or nulla 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.
.NET Framework Security
- 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.