Udostępnij za pośrednictwem


IEntryPoint.Initialize Method (2007 System)

When implemented in a derived class, this method supplies you with a handle to the host application's IServiceProvider, which can be used to query the host application's object model.

Namespace:  Microsoft.VisualStudio.Tools.Applications.Runtime
Assembly:  Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0 (in Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0.dll)

Syntax

'Declaration
Sub Initialize ( _
    serviceProvider As IServiceProvider _
)
'Usage
Dim instance As IEntryPoint 
Dim serviceProvider As IServiceProvider

instance.Initialize(serviceProvider)
void Initialize(
    IServiceProvider serviceProvider
)
void Initialize(
    IServiceProvider^ serviceProvider
)
function Initialize(
    serviceProvider : IServiceProvider
)

Parameters

  • serviceProvider
    Type: System.IServiceProvider

    A service provider from which to get the object in the host application that is used to access the host application's object hierarchy.

Remarks

This is the first method called during initialization of an add-in.

See Also

Reference

IEntryPoint Interface

IEntryPoint Members

Microsoft.VisualStudio.Tools.Applications.Runtime Namespace