AvailabilityGroupCollection.ItemById Método
Extracts a member from the availability group collection using a system-defined, unique identifier.
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
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 devuelto
Tipo: Microsoft.SqlServer.Management.Smo.AvailabilityGroup
The availability group that has the specified ID value.