Nevron .NET Vision
Nevron.Dom Namespace / NServiceManager Class / RemoveService Method
service to remove


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

    Parameters

    service
    service to remove
    Remarks
    The method will check whether the service exists and if it does not 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