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
hierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchyThe project node.
added
Type: System.Int321 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
- 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.
See Also
Reference
SolutionListenerForProjectOpen Class