MigrationBatchIdParameter.GetObjects<T> Method (ObjectId, IConfigDataProvider)
Returns a list of objects matching this identity starting with the specified root object and using the specified session.
Namespace: Microsoft.Exchange.Management.Migration
Assembly: Microsoft.Exchange.Management (in Microsoft.Exchange.Management.dll)
Syntax
'Declaration
Public Function GetObjects(Of T As {New, IConfigurable}) ( _
rootId As ObjectId, _
session As IConfigDataProvider _
) As IEnumerable(Of T)
'Usage
Dim instance As MigrationBatchIdParameter
Dim rootId As ObjectId
Dim session As IConfigDataProvider
Dim returnValue As IEnumerable(Of T)
returnValue = instance.GetObjects(rootId, _
session)
public IEnumerable<T> GetObjects<T>(
ObjectId rootId,
IConfigDataProvider session
)
where T : new(), IConfigurable
Type Parameters
- T
The type of object to return.
Parameters
- rootId
Type: Microsoft.Exchange.Data.ObjectId
Identifier of the root object for the search.
- session
Type: Microsoft.Exchange.Data.IConfigDataProvider
An object implementing the IConfigDataProvider interface that represents the search session.
Return Value
Type: System.Collections.Generic.IEnumerable<T>
A collection of objects that match this identity.