NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IDesignerHost.AddService

Adds a service to the host.

[Visual Basic]
Sub AddService( _
   ByVal serviceClass As Type, _
   ByVal serviceInstance As Object _
)
[C#]
void AddService(
   Type serviceClass,
   object serviceInstance
);
[C++]
void AddService(
   Type* serviceClass,
   Object* serviceInstance
) = 0;
[JScript]
function AddService(
   serviceClass : Type,
   serviceInstance : Object
);

Parameters

serviceClass
The class of the service to add.
serviceInstance
An instance of the type of serviceClass.

Remarks

Any service can be added, but an exception will be thrown if an existing service exists for the specified service class. The service will be available from the site of any component .

See Also

IDesignerHost Interface | IDesignerHost Members | System.ComponentModel.Design Namespace | RemoveService