다음을 통해 공유


String.Contains Method

Definition

Overloads

Contains(ICharSequence)

Returns true if and only if this string contains the specified sequence of char values.

Contains(String)

Returns true if and only if this string contains the specified sequence of char values.

Contains(ICharSequence)

Returns true if and only if this string contains the specified sequence of char values.

[Android.Runtime.Register("contains", "(Ljava/lang/CharSequence;)Z", "")]
public bool Contains (Java.Lang.ICharSequence s);
[<Android.Runtime.Register("contains", "(Ljava/lang/CharSequence;)Z", "")>]
member this.Contains : Java.Lang.ICharSequence -> bool

Parameters

s
ICharSequence

the sequence to search for

Returns

true if this string contains s, false otherwise

Attributes

Remarks

Returns true if and only if this string contains the specified sequence of char values.

Added in 1.5.

Java documentation for java.lang.String.contains(java.lang.CharSequence).

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

Contains(String)

Returns true if and only if this string contains the specified sequence of char values.

public bool Contains (string s);
member this.Contains : string -> bool

Parameters

s
String

the sequence to search for

Returns

true if this string contains s, false otherwise

Remarks

Returns true if and only if this string contains the specified sequence of char values.

Added in 1.5.

Java documentation for java.lang.String.contains(java.lang.CharSequence).

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