Méthode AvailabilityReplicaCollection.ItemById
Extracts a member from the Resource Pool collection using a system-defined, unique identifier.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Function ItemById ( _
id As Integer _
) As AvailabilityReplica
'Utilisation
Dim instance As AvailabilityReplicaCollection
Dim id As Integer
Dim returnValue As AvailabilityReplica
returnValue = instance.ItemById(id)
public AvailabilityReplica ItemById(
int id
)
public:
AvailabilityReplica^ ItemById(
int id
)
member ItemById :
id:int -> AvailabilityReplica
public function ItemById(
id : int
) : AvailabilityReplica
Paramètres
- id
Type : System.Int32
A system-generated component identifier.
Valeur de retour
Type : Microsoft.SqlServer.Management.Smo.AvailabilityReplica
A reference to the object extracted.