Nevron .NET Vision
Nevron.Dom Namespace / INServiceProvider Interface / GetServiceOfType Method
service type


In This Topic
    GetServiceOfType Method (INServiceProvider)
    In This Topic
    Gets a reference to a service of the specified type
    Syntax
    'Declaration
     
    
    Function GetServiceOfType( _
       ByVal serviceType As System.Type _
    ) As INService
    'Usage
     
    
    Dim instance As INServiceProvider
    Dim serviceType As System.Type
    Dim value As INService
     
    value = instance.GetServiceOfType(serviceType)
    INService GetServiceOfType( 
       System.Type serviceType
    )

    Parameters

    serviceType
    service type

    Return Value

    service instance or null if a service of this type cannot be located
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also