Share via


WmiSmoObject.SetName Method

Sets the name of the referenced object.

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

Syntax

'Declaration
Protected Friend Sub SetName ( _
    name As String _
)
'Usage
Dim name As String 

Me.SetName(name)
protected internal void SetName(
    string name
)
protected public:
void SetName(
    String^ name
)
member SetName : 
        name:string -> unit
function SetName(
    name : String
)

Parameters

Examples

Managing Services and Network Settings by Using WMI Provider

See Also

Reference

WmiSmoObject Class

Microsoft.SqlServer.Management.Smo.Wmi Namespace

Other Resources

WMI and SQL Server

Connecting to the SQL Server Database Engine