Nevron .NET Vision
Nevron.Dom Namespace / NServiceManager Class / AddService Method
service to add


In This Topic
    AddService Method
    In This Topic
    Adds the specified service
    Syntax
    'Declaration
     
    
    Public Overridable Sub AddService( _
       ByVal service As INService _
    ) 
    'Usage
     
    
    Dim instance As NServiceManager
    Dim service As INService
     
    instance.AddService(service)
    public virtual void AddService( 
       INService service
    )

    Parameters

    service
    service to add
    Remarks
    The method will check whether a service of this type already exists and if so will throw an exception. It will then add the service and call the OnServiceAdded method.
    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