ServerAlias 构造函数 (ManagedComputer, String)

Initializes a new instance of the ServerAlias class on the specified WMI installation and with the specified name.

命名空间:  Microsoft.SqlServer.Management.Smo.Wmi
程序集:  Microsoft.SqlServer.SqlWmiManagement(在 Microsoft.SqlServer.SqlWmiManagement.dll 中)

语法

声明
Public Sub New ( _
    managedComputer As ManagedComputer, _
    name As String _
)
用法
Dim managedComputer As ManagedComputer 
Dim name As String 

Dim instance As New ServerAlias(managedComputer, _
    name)
public ServerAlias(
    ManagedComputer managedComputer,
    string name
)
public:
ServerAlias(
    ManagedComputer^ managedComputer, 
    String^ name
)
new : 
        managedComputer:ManagedComputer * 
        name:string -> ServerAlias
public function ServerAlias(
    managedComputer : ManagedComputer, 
    name : String
)

参数

  • name
    类型:System.String
    A String value that specifies the name of the server connection alias.

示例

使用 WMI 提供程序管理服务和网络设置

请参阅

参考

ServerAlias 类

ServerAlias 重载

Microsoft.SqlServer.Management.Smo.Wmi 命名空间

其他资源

WMI and SQL Server

连接到 SQL Server 数据库引擎