AvailabilityReplicaCollection.ItemById Method
Extracts a member from the Resource Pool collection using a system-defined, unique identifier.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Function ItemById ( _
id As Integer _
) As AvailabilityReplica
'Usage
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
Parameters
- id
Type: System.Int32
A system-generated component identifier.
Return Value
Type: Microsoft.SqlServer.Management.Smo.AvailabilityReplica
A reference to the object extracted.