Share via


CommonServicesProvider.InitializeProvider Method

Allows the Provider to do a one-time initialization. This is called after the Provider is instantiated. This element is introduced in Windows PowerShell 5.0.

Namespace: Microsoft.OneGet.ServicesProvider.Common
Assembly: Microsoft.OneGet.ServicesProvider.Common (in Microsoft.OneGet.ServicesProvider.Common.dll)

Usage

'Usage
Dim instance As CommonServicesProvider
Dim dynamicInterface As Object
Dim requestImpl As Object

instance.InitializeProvider(dynamicInterface, requestImpl)

Syntax

'Declaration
Public Sub InitializeProvider ( _
    dynamicInterface As Object, _
    requestImpl As Object _
)
public void InitializeProvider (
    Object dynamicInterface,
    Object requestImpl
)
public:
void InitializeProvider (
    Object^ dynamicInterface, 
    Object^ requestImpl
)
public void InitializeProvider (
    Object dynamicInterface, 
    Object requestImpl
)
public function InitializeProvider (
    dynamicInterface : Object, 
    requestImpl : Object
)

Parameters

  • dynamicInterface
    A reference to the DynamicInterface class -- used to implement late-binding
  • requestImpl
    Object implementing some or all IRequest methods

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also

Reference

CommonServicesProvider Class
CommonServicesProvider Members
Microsoft.OneGet.ServicesProvider.Common Namespace