ArcFM Responder Mobile Developer Guide
GetSingleFieldByModelName Method






The model name to use.
TRUE - If more than 1 field with the given model name is found, will throw an error. FALSE - If more than 1 field with the given model name is found, returns the first value found.
Get a field based on a model name, case insensitive.
Syntax
'Declaration
 
Public Function GetSingleFieldByModelName( _
   ByVal modelName As System.String, _
   ByVal errorIfMultiple As System.Boolean _
) As TaskFieldViewModel
'Usage
 
Dim instance As TaskViewModel
Dim modelName As System.String
Dim errorIfMultiple As System.Boolean
Dim value As TaskFieldViewModel
 
value = instance.GetSingleFieldByModelName(modelName, errorIfMultiple)
public TaskFieldViewModel GetSingleFieldByModelName( 
   System.string modelName,
   System.bool errorIfMultiple
)
public function GetSingleFieldByModelName( 
    modelName: System.String;
    errorIfMultiple: System.Boolean
): TaskFieldViewModel; 
public function GetSingleFieldByModelName( 
   modelName : System.String,
   errorIfMultiple : System.boolean
) : TaskFieldViewModel;
public: TaskFieldViewModel* GetSingleFieldByModelName( 
   System.string* modelName,
   System.bool errorIfMultiple
) 
public:
TaskFieldViewModel^ GetSingleFieldByModelName( 
   System.String^ modelName,
   System.bool errorIfMultiple
) 

Parameters

modelName
The model name to use.
errorIfMultiple
TRUE - If more than 1 field with the given model name is found, will throw an error. FALSE - If more than 1 field with the given model name is found, returns the first value found.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

TaskViewModel Class
TaskViewModel Members

Send Feedback