DatabaseReplicaStateCollection.Add 方法
Adds the specified database role to the collection.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Sub Add ( _
DatabaseReplicaState As DatabaseReplicaState _
)
用法
Dim instance As DatabaseReplicaStateCollection
Dim DatabaseReplicaState As DatabaseReplicaState
instance.Add(DatabaseReplicaState)
public void Add(
DatabaseReplicaState DatabaseReplicaState
)
public:
void Add(
DatabaseReplicaState^ DatabaseReplicaState
)
member Add :
DatabaseReplicaState:DatabaseReplicaState -> unit
public function Add(
DatabaseReplicaState : DatabaseReplicaState
)
参数
- DatabaseReplicaState
类型:Microsoft.SqlServer.Management.Smo.DatabaseReplicaState
DatabaseReplicaState object.