Método AvailabilityGroupCollection.ItemById
Extracts a member from the availability group collection using a system-defined, unique identifier.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)
Sintaxe
'Declaração
Public Function ItemById ( _
id As Integer _
) As AvailabilityGroup
'Uso
Dim instance As AvailabilityGroupCollection
Dim id As Integer
Dim returnValue As AvailabilityGroup
returnValue = instance.ItemById(id)
public AvailabilityGroup ItemById(
int id
)
public:
AvailabilityGroup^ ItemById(
int id
)
member ItemById :
id:int -> AvailabilityGroup
public function ItemById(
id : int
) : AvailabilityGroup
Parâmetros
- id
Tipo: System.Int32
The identifier of the availability group that is a member of the availability group collection.
Valor de retorno
Tipo: Microsoft.SqlServer.Management.Smo.AvailabilityGroup
The availability group that has the specified ID value.