Share via


ManagedComputer.ServerAliases Property

Represents a collection of ServerAlias objects. Each ServerAlias object represents a server alias defined on the WMI installation.

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

Syntax

'Declaration
Public ReadOnly Property ServerAliases As ServerAliasCollection 
    Get
'Usage
Dim instance As ManagedComputer 
Dim value As ServerAliasCollection 

value = instance.ServerAliases
public ServerAliasCollection ServerAliases { get; }
public:
property ServerAliasCollection^ ServerAliases {
    ServerAliasCollection^ get ();
}
member ServerAliases : ServerAliasCollection
function get ServerAliases () : ServerAliasCollection

Property Value

Type: Microsoft.SqlServer.Management.Smo.Wmi.ServerAliasCollection
A ServerAliasCollection object that represents all the server aliases defined on the WMI installation.

Examples

Managing Services and Network Settings by Using WMI Provider

See Also

Reference

ManagedComputer Class

Microsoft.SqlServer.Management.Smo.Wmi Namespace

Other Resources

Connecting to the SQL Server Database Engine