Returns a value indicating whether the specified System.Char object occurs
within this
StringBuilder. (Invariant culture, Ignore case).
Namespace: MonoSoftware.CoreAssembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)
Syntax
C# |
---|
public static bool Contains(
this StringBuilder sb,
char ch
) |
Visual Basic |
---|
<ExtensionAttribute>
Public Shared Function Contains (
sb As StringBuilder,
ch As Char
) As Boolean |
Visual C++ |
---|
public:
[ExtensionAttribute]
static bool Contains(
StringBuilder^ sb,
wchar_t ch
) |
F# |
---|
static member Contains :
sb : StringBuilder *
ch : char -> bool
|
Return Value
Type:
Booleantrue if the value parameter occurs within this
StringBuilder, or if the
StringBuilder
is empty; otherwise, false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
StringBuilder. 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).
See Also