ConstantsContains Method |  |
Hartismere School[This is preliminary documentation and is subject to change.]
Searches a string[] for a given word
Namespace: EJW.TextBasedAdventureAssembly: EJW.TextBasedAdventure (in EJW.TextBasedAdventure.dll) Version: 2.0.5850.21153
Syntaxpublic static bool Contains(
this string[] str,
string String
)
<ExtensionAttribute>
Public Shared Function Contains (
str As String(),
String As String
) As Boolean
public:
[ExtensionAttribute]
static bool Contains(
array<String^>^ str,
String^ String
)
[<ExtensionAttribute>]
static member Contains :
str : string[] *
String : string -> bool
Parameters
- str
- Type: SystemString
- String
- Type: SystemString
Word to search for
Return Value
Type:
Booleantrue if the word is found
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks
The search is not case sensitive.
See Also