Field Property ()

The Field property sets or returns the value associated with a specified field, identified by field name, of the Axapta record.

Namespace:  Microsoft.Dynamics.BusinessConnectorNet
Assembly:  Microsoft.Dynamics.BusinessConnectorNet (in Microsoft.Dynamics.BusinessConnectorNet.dll)

Syntax

'Declaration
Public Property Field ( _
    fieldName As String _
) As Object
    Get
    Set
'Usage
Dim instance As AxaptaRecord
Dim fieldName As String
Dim value As Object

value = instance.Field(fieldName)

instance.Field(fieldName) = value
public Object this[
    string fieldName
] { get; set; }
public:
property Object^ Field[String^ fieldName] {
    Object^ get (String^ fieldName);
    void set (String^ fieldName, Object^ value);
}

Parameters

Property Value

Type: System. . :: . .Object
The return value is the object that contains the field value. For information about the return value data types, see AxaptaRecord.

Exceptions

Exception Condition
BusinessConnectorException

An unexpected error has occurred with the Business Connector.

AxaptaRecordNotValidException

An attempt has been made to access an invalid record.

ArgumentException

An argument passed to the method is invalid.

ArgumentNullException

A null reference was passed to a method that does not accept it as a valid argument.

NotSupportedException

The called method returned an object whose data type is not supported. For more information about the supported data types for returned objects, see AxaptaRecord.

See Also

Reference

AxaptaRecord Class

Field Overload

Microsoft.Dynamics.BusinessConnectorNet Namespace