Share via


BaseTaskForm(IServiceProvider) Constructor

Definition

Initializes a new instance of the BaseTaskForm class.

protected:
 BaseTaskForm(IServiceProvider ^ serviceProvider);
protected BaseTaskForm (IServiceProvider serviceProvider);
new Microsoft.Web.Management.Client.Win32.BaseTaskForm : IServiceProvider -> Microsoft.Web.Management.Client.Win32.BaseTaskForm
Protected Sub New (serviceProvider As IServiceProvider)

Parameters

serviceProvider
IServiceProvider

The IServiceProvider interface that represents the service object for this class.

Examples

The following example implements the constructor for a class that is derived from the BaseTaskForm class.

class MyCredentialFrm : BaseTaskForm {
public MyCredentialFrm(IServiceProvider serviceProvider,
               WebObjectsModuleProxy serviceProxy,
               PropertyBag bag)
    : base(serviceProvider) {

    _serviceProxy = serviceProxy;
    _bag = bag;

    InitializeComponent();
}

Remarks

You should call the base class constructor in the derived class constructor. The base class constructor sets the following control styles:

Applies to