AggregationSubscriptionIdParameter.GetObjects<T> Method (ObjectId, IConfigDataProvider, OptionalIdentityData, Nullable<LocalizedString>)
Returns all objects that match this subscription identifier.
Namespace: Microsoft.Exchange.Configuration.Tasks
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, _
optionalData As OptionalIdentityData, _
<OutAttribute> ByRef notFoundReason As Nullable(Of LocalizedString) _
) As IEnumerable(Of T)
'Usage
Dim instance As AggregationSubscriptionIdParameter
Dim rootId As ObjectId
Dim session As IConfigDataProvider
Dim optionalData As OptionalIdentityData
Dim notFoundReason As Nullable(Of LocalizedString)
Dim returnValue As IEnumerable(Of T)
returnValue = instance.GetObjects(rootId, _
session, optionalData, notFoundReason)
public IEnumerable<T> GetObjects<T>(
ObjectId rootId,
IConfigDataProvider session,
OptionalIdentityData optionalData,
out Nullable<LocalizedString> notFoundReason
)
where T : new(), IConfigurable
Type Parameters
- T
The type of objects to return.
Parameters
- rootId
Type: Microsoft.Exchange.Data.ObjectId
The identifier of the root object of the search.
- session
Type: Microsoft.Exchange.Data.IConfigDataProvider
An object that implements the IConfigDataProvider interface that provides the data context for the search.
- optionalData
Type: Microsoft.Exchange.Configuration.Tasks.OptionalIdentityData
Additional information to use when searching.
- notFoundReason
Type: System.Nullable<LocalizedString>
A localized string containing information about why a objects associated with this subscription identifier could not be found.
Return Value
Type: System.Collections.Generic.IEnumerable<T>
A collection of objects that match this subscription identifier.