AvailabilityGroupListenerCollection.Add 方法
Adds an AvailabilityGroupListener object to the availability group listener collection.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub Add ( _
AvailabilityGroupListener As AvailabilityGroupListener _
)
'用途
Dim instance As AvailabilityGroupListenerCollection
Dim AvailabilityGroupListener As AvailabilityGroupListener
instance.Add(AvailabilityGroupListener)
public void Add(
AvailabilityGroupListener AvailabilityGroupListener
)
public:
void Add(
AvailabilityGroupListener^ AvailabilityGroupListener
)
member Add :
AvailabilityGroupListener:AvailabilityGroupListener -> unit
public function Add(
AvailabilityGroupListener : AvailabilityGroupListener
)
參數
- AvailabilityGroupListener
型別:Microsoft.SqlServer.Management.Smo.AvailabilityGroupListener
The availability group listener to add.