Accusoft Pegasus
Accusoft.MicrXpress1.Net
GetField Method
See Also  Send Feedback
Accusoft.MicrXpressSdk Namespace > TextLineResult Class : GetField Method




fieldType
The MICR field to be retrieved.
Retrieves a MicrField object.

Syntax

Visual Basic (Declaration)  
Public Function GetField( _
   ByVal fieldType As MicrFieldTypes _
) As MicrFieldResult
Visual Basic (Usage) Copy Code
Dim instance As TextLineResult
Dim fieldType As MicrFieldTypes
Dim value As MicrFieldResult
 
value = instance.GetField(fieldType)
C#  
public MicrFieldResult GetField( 
   MicrFieldTypes fieldType
)
Managed Extensions for C++  
public: MicrFieldResult* GetField( 
   MicrFieldTypes fieldType
) 
C++/CLI  
public:
MicrFieldResult^ GetField( 
   MicrFieldTypes fieldType
) 

Parameters

fieldType
The MICR field to be retrieved.

Return Value

A MicrField object for the specified MicrField.

Exceptions

Exception Description
InvalidOperationException Thrown if the TextLineResult object has not be parsed.
InvalidEnumArgumentException Thrown if the fieldType argument is a bitwise combination of two or more MicrFieldTypes.
ArgumentOutOfRangeException Thrown if the fieldType argument represents a field that was not parsed.

Remarks

This method will throw a System.ArgumentOutOfRangeException for the following reasons:

  • If this text line has not been parsed using TextLineResult.Parse.
  • If the specified field type is not parsable. Use FieldTypes to determine which fields are parseable.

See Also


©2009. Pegasus Imaging Corporation, DBA Accusoft Pegasus. All Rights Reserved.