RegisteredServer 构造函数 (RegisteredServerCollection, String)
Initializes a new instance of the RegisteredServer object.
命名空间: Microsoft.SqlServer.Management.Smo.RegisteredServers
程序集: Microsoft.SqlServer.SmoExtended(在 Microsoft.SqlServer.SmoExtended.dll 中)
语法
声明
Public Sub New ( _
regServers As RegisteredServerCollection, _
name As String _
)
用法
Dim regServers As RegisteredServerCollection
Dim name As String
Dim instance As New RegisteredServer(regServers, _
name)
public RegisteredServer(
RegisteredServerCollection regServers,
string name
)
public:
RegisteredServer(
RegisteredServerCollection^ regServers,
String^ name
)
new :
regServers:RegisteredServerCollection *
name:string -> RegisteredServer
public function RegisteredServer(
regServers : RegisteredServerCollection,
name : String
)
参数
- regServers
类型:Microsoft.SqlServer.Management.Smo.RegisteredServers.RegisteredServerCollection
The T: [Microsoft.SqlServer.Management.Smo.RegisteredServers.RegisteredServerCollection] to which the new registered server should be added.
- name
类型:System.String
A String value that specifies the name of the registered server.