Metodo AvailabilityGroupCollection.ItemById
Extracts a member from the availability group collection using a system-defined, unique identifier.
Spazio dei nomi Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Sintassi
'Dichiarazione
Public Function ItemById ( _
id As Integer _
) As AvailabilityGroup
'Utilizzo
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
Parametri
- id
Tipo: System.Int32
The identifier of the availability group that is a member of the availability group collection.
Valore restituito
Tipo: Microsoft.SqlServer.Management.Smo.AvailabilityGroup
The availability group that has the specified ID value.