共用方式為


IDOMStringList.Contains(String) Method

Definition

Test if a string is part of this DOMStringList.

[Android.Runtime.Register("contains", "(Ljava/lang/String;)Z", "GetContains_Ljava_lang_String_Handler:Org.W3c.Dom.IDOMStringListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool Contains (string? str);
[<Android.Runtime.Register("contains", "(Ljava/lang/String;)Z", "GetContains_Ljava_lang_String_Handler:Org.W3c.Dom.IDOMStringListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Contains : string -> bool

Parameters

str
String

The string to look for.

Returns

true if the string has been found, false otherwise.

Attributes

Remarks

Test if a string is part of this DOMStringList.

Java documentation for org.w3c.dom.DOMStringList.contains(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to