IExecutionContext.Item Property

Gets or sets properties in this execution context, which will be accessible to the BDC connector.

Namespace:  Microsoft.BusinessData.Runtime
Assembly:  Microsoft.BusinessData (in Microsoft.BusinessData.dll)

Syntax

'Declaration
Default Property Item ( _
    propertyName As String _
) As Object
    Get
    Set
'Usage
Dim instance As IExecutionContext
Dim propertyName As String
Dim value As Object

value = instance(propertyName)

instance(propertyName) = value
Object this[
    string propertyName
] { get; set; }

Parameters

Property Value

Type: System.Object

The property value in the execution context.

Remarks

Properties set on execution context by the application are accessible to the BDC connector, and vice versa. This allows an additional communication line between the application and the connector to pass execution hints and general status information. This method of communication is independent of the external system API and can be dynamic as the application requires it. For example, the application may specify the number of times a failed operation to be retried, and the connector may report response time of the external system.

Standard BDC connectors do not support any messages that would allow them to behave differently or they do not report information back to the application via execution context. However, custom connectors and assemblies to be used with .Net Assembly connector have access to the execution context and may use it for communicating with the application.

By default, a newly added property is not managed and therefore will not be disposed when the execution context is disposed.

See Also

Reference

IExecutionContext Interface

IExecutionContext Members

Microsoft.BusinessData.Runtime Namespace