Share via


Service.Refresh Method

Refreshes the SQL Server service.

Namespace:  Microsoft.SqlServer.Management.Smo.Wmi
Assembly:  Microsoft.SqlServer.SqlWmiManagement (in Microsoft.SqlServer.SqlWmiManagement.dll)

Syntax

'Declaration
Public Overrides Sub Refresh
'Usage
Dim instance As Service

instance.Refresh()
public override void Refresh()
public:
virtual void Refresh() override
abstract Refresh : unit -> unit  
override Refresh : unit -> unit
public override function Refresh()

Examples

Managing Services and Network Settings by Using WMI Provider

See Also

Reference

Service Class

Microsoft.SqlServer.Management.Smo.Wmi Namespace

Other Resources

WMI and SQL Server

Connecting to the SQL Server Database Engine