LightSwitch HTML Edition
IndexOf(String) Method






Name of the field to look for.
Gets the position of a given C1OlapField in the list.
Syntax
'Declaration
 
Public Overloads Function IndexOf( _
   ByVal fieldName As System.String _
) As System.Integer
'Usage
 
Dim instance As C1OlapFieldList
Dim fieldName As System.String
Dim value As System.Integer
 
value = instance.IndexOf(fieldName)
public System.int IndexOf( 
   System.string fieldName
)
public function IndexOf( 
    fieldName: System.String
): System.Integer; 
public function IndexOf( 
   fieldName : System.String
) : System.int;
public: System.int IndexOf( 
   System.string* fieldName
) 
public:
System.int IndexOf( 
   System.String^ fieldName
) 

Parameters

fieldName
Name of the field to look for.

Return Value

The index of the field in the list, or -1 if the field is not a member of the list.
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

C1OlapFieldList Class
C1OlapFieldList Members
Overload List

Send Feedback