Compartir a través de


DataAccessTask<TDataObject>.GetDataObjects<TObject> Method (IIdentityParameter, IConfigDataProvider, ObjectId, OptionalIdentityData, Nullable<LocalizedString>)

Namespace:  Microsoft.Exchange.Configuration.Tasks
Assembly:  Microsoft.Exchange.Configuration.ObjectModel (in Microsoft.Exchange.Configuration.ObjectModel.dll)

Syntax

'Declaration
Protected Function GetDataObjects(Of TObject As {New, IConfigurable}) ( _
    id As IIdentityParameter, _
    session As IConfigDataProvider, _
    rootID As ObjectId, _
    optionalData As OptionalIdentityData, _
    <OutAttribute> ByRef notFoundReason As Nullable(Of LocalizedString) _
) As IEnumerable(Of TObject)
'Usage
Dim id As IIdentityParameter
Dim session As IConfigDataProvider
Dim rootID As ObjectId
Dim optionalData As OptionalIdentityData
Dim notFoundReason As Nullable(Of LocalizedString)
Dim returnValue As IEnumerable(Of TObject)

returnValue = Me.GetDataObjects(id, _
    session, rootID, optionalData, notFoundReason)
protected IEnumerable<TObject> GetDataObjects<TObject>(
    IIdentityParameter id,
    IConfigDataProvider session,
    ObjectId rootID,
    OptionalIdentityData optionalData,
    out Nullable<LocalizedString> notFoundReason
)
where TObject : new(), IConfigurable

Type Parameters

  • TObject

Return Value

Type: System.Collections.Generic.IEnumerable<TObject>