AvailabilityReplicaCollection.ItemById 方法
Extracts a member from the Resource Pool collection using a system-defined, unique identifier.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Function ItemById ( _
id As Integer _
) As AvailabilityReplica
'用途
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
參數
- id
型別:System.Int32
A system-generated component identifier.
傳回值
型別:Microsoft.SqlServer.Management.Smo.AvailabilityReplica
A reference to the object extracted.