Notifies listening clients that the project has opened.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'Declaration
Public Function OnAfterOpenProject ( _
pHierarchy As IVsHierarchy, _
fAdded As Integer _
) As Integer
'Usage
Dim instance As ModelingEditorFactory
Dim pHierarchy As IVsHierarchy
Dim fAdded As Integer
Dim returnValue As Integer
returnValue = instance.OnAfterOpenProject(pHierarchy, _
fAdded)
public int OnAfterOpenProject(
IVsHierarchy pHierarchy,
int fAdded
)
public:
virtual int OnAfterOpenProject(
IVsHierarchy^ pHierarchy,
int fAdded
) sealed
public final function OnAfterOpenProject(
pHierarchy : IVsHierarchy,
fAdded : int
) : int
Parameters
pHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchyThe IVsHierarchy interface of the project that is being loaded.
fAdded
Type: System.Int32true if the project is added to the modeling editor after the modeling editor is opened; otherwise, false.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsSolutionEvents.OnAfterOpenProject(IVsHierarchy, Int32)
.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.