SolutionListenerForProjectOpen.OnAfterOpenProject Method

Fired after the project has been opened.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Public Overrides Function OnAfterOpenProject ( _
    hierarchy As IVsHierarchy, _
    added As Integer _
) As Integer
'使用
Dim instance As SolutionListenerForProjectOpen
Dim hierarchy As IVsHierarchy
Dim added As Integer
Dim returnValue As Integer

returnValue = instance.OnAfterOpenProject(hierarchy, _
    added)
public override int OnAfterOpenProject(
    IVsHierarchy hierarchy,
    int added
)
public:
virtual int OnAfterOpenProject(
    IVsHierarchy^ hierarchy, 
    int added
) override
public override function OnAfterOpenProject(
    hierarchy : IVsHierarchy, 
    added : int
) : int

Parameters

  • added
    Type: System.Int32

    1 if the project is a new one, otherwise 0.

Return Value

Type: System.Int32

S_OK if the method succeeded, otherwise an error code.

Implements

IVsSolutionEvents3.OnAfterOpenProject(IVsHierarchy, Int32)
IVsSolutionEvents2.OnAfterOpenProject(IVsHierarchy, Int32)
IVsSolutionEvents.OnAfterOpenProject(IVsHierarchy, Int32)

Remarks

In addition to opening the project, it expands and selects the project node in the Solution Explorer.

Permissions

See Also

Reference

SolutionListenerForProjectOpen Class

SolutionListenerForProjectOpen Members

Microsoft.VisualStudio.Package Namespace