DataAccessTask<TDataObject>.GetDataObject<TObject> Method (IIdentityParameter, IConfigDataProvider, ObjectId, OptionalIdentityData, Nullable<LocalizedString>, Nullable<LocalizedString>)
Namespace: Microsoft.Exchange.Configuration.Tasks
Assembly: Microsoft.Exchange.Configuration.ObjectModel (in Microsoft.Exchange.Configuration.ObjectModel.dll)
Syntax
'Declaration
Protected Function GetDataObject(Of TObject As {New, IConfigurable}) ( _
id As IIdentityParameter, _
session As IConfigDataProvider, _
rootID As ObjectId, _
optionalData As OptionalIdentityData, _
notFoundError As Nullable(Of LocalizedString), _
multipleFoundError As Nullable(Of LocalizedString) _
) As IConfigurable
'Usage
Dim id As IIdentityParameter
Dim session As IConfigDataProvider
Dim rootID As ObjectId
Dim optionalData As OptionalIdentityData
Dim notFoundError As Nullable(Of LocalizedString)
Dim multipleFoundError As Nullable(Of LocalizedString)
Dim returnValue As IConfigurable
returnValue = Me.GetDataObject(id, _
session, rootID, optionalData, notFoundError, _
multipleFoundError)
protected IConfigurable GetDataObject<TObject>(
IIdentityParameter id,
IConfigDataProvider session,
ObjectId rootID,
OptionalIdentityData optionalData,
Nullable<LocalizedString> notFoundError,
Nullable<LocalizedString> multipleFoundError
)
where TObject : new(), IConfigurable
Type Parameters
- TObject
Parameters
- session
Type: Microsoft.Exchange.Data.IConfigDataProvider
- rootID
Type: Microsoft.Exchange.Data.ObjectId
- optionalData
Type: Microsoft.Exchange.Configuration.Tasks.OptionalIdentityData
- notFoundError
Type: System.Nullable<LocalizedString>
- multipleFoundError
Type: System.Nullable<LocalizedString>