ObjectListCommandCollection.IndexOf(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the index of the command whose name is the specified string. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
public:
int IndexOf(System::String ^ s);
public int IndexOf (string s);
member this.IndexOf : string -> int
Public Function IndexOf (s As String) As Integer
Parameters
- s
- String
A string to search for in the collection.
Returns
The index of the command whose name is the specified string.
Remarks
Returns the index of the command whose Name property is the string specified by the s parameter. If matching items are not found in the collection, the IndexOf method returns -1.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru