GetAppFieldAsync Method
Overloads
| GetAppFieldAsync(IApp, String, Boolean, Int32, String) | 
             Get app field. The AppField instance returned by this method is a session object and must be disposed to avoid session object leakage.  | 
        
      
    
GetAppFieldAsync(IApp, String, Boolean, Int32, String)
Get app field. The AppField instance returned by this method is a session object and must be disposed to avoid session object leakage.
Declaration
      public static Task<IAppField> GetAppFieldAsync(this IApp theApp, string name, bool showAlternatives = false, int pageSize = 20, string stateName = null)
    
  Parameters
| Type | Name | Description | 
|---|---|---|
| IApp | theApp | 
           The app object. Can be omitted when calling the method as an instance method on the IApp object.  | 
      
| System.String | name | 
           Name of the field  | 
      
| System.Boolean | showAlternatives | 
           Show alternatives  | 
      
| System.Int32 | pageSize | 
           The size of the page returned, default 20  | 
      
| System.String | stateName | 
           The alternate state to use.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<IAppField> | 
           A task with the IAppField object as result  |