AifServiceContainer.AddService Method

Adds the service.

Namespace: Microsoft.Uii.AifServices
Assembly: Microsoft.Uii.AifServices (in Microsoft.Uii.AifServices.dll)

Usage

'Usage
Dim instance As AifServiceContainer
Dim type As Type
Dim service As T

instance.AddService(type, service)

Syntax

'Declaration
Public Sub AddService(Of T) ( _
    type As Type, _
    service As T _
)
public void AddService<T> (
    Type type,
    T service
)
public:
generic<typename T>
void AddService (
    Type^ type, 
    T service
)

GenericParameters

  • T
    Specifies the type of service.

Parameters

  • type
    Specifies the service type, interface.
  • service
    Specifies the service.

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

See Also

Reference

AifServiceContainer Class
AifServiceContainer Members
Microsoft.Uii.AifServices Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.