Export (0) Print
Expand All

String Members

String overview

Public Constructors

public constructorString Constructor

Supported by the .NET Compact Framework.

Overloaded. Initializes a new instance of the String class.

Public Fields

public fieldstatic (Shared in Visual Basic)Empty

Supported by the .NET Compact Framework.

Represents the empty string. This field is read-only.

Public Properties

public propertyChars Gets the character at a specified character position in this instance.

In C#, this property is the indexer for the String class.

public propertyLength

Supported by the .NET Compact Framework.

Gets the number of characters in this instance.

Public Methods

public methodClone

Supported by the .NET Compact Framework.

Returns a reference to this instance of String.
public methodstatic (Shared in Visual Basic)Compare

Supported by the .NET Compact Framework.

Overloaded. Compares two specified String objects.
public methodstatic (Shared in Visual Basic)CompareOrdinal

Supported by the .NET Compact Framework.

Overloaded. Compares two String objects by evaluating the numeric values of the corresponding Char objects in each string.
public methodCompareTo

Supported by the .NET Compact Framework.

Overloaded. Compares this instance with a specified object.
public methodstatic (Shared in Visual Basic)Concat

Supported by the .NET Compact Framework.

Overloaded. Concatenates one or more instances of String, or the String representations of the values of one or more instances of Object.
public methodstatic (Shared in Visual Basic)Copy

Supported by the .NET Compact Framework.

Creates a new instance of String with the same value as a specified String.
public methodCopyTo

Supported by the .NET Compact Framework.

Copies a specified number of characters from a specified position in this instance to a specified position in an array of Unicode characters.
public methodEndsWith

Supported by the .NET Compact Framework.

Determines whether the end of this instance matches the specified String.
public methodEquals

Supported by the .NET Compact Framework.

Overloaded. Overridden. Determines whether two String objects have the same value.
public methodstatic (Shared in Visual Basic)Format

Supported by the .NET Compact Framework.

Overloaded. Replaces each format item in a specified String with the text equivalent of a corresponding object's value.
public methodGetEnumerator Retrieves an object that can iterate through the individual characters in this instance.
public methodGetHashCode

Supported by the .NET Compact Framework.

Overridden. Returns the hash code for this instance.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodGetTypeCode

Supported by the .NET Compact Framework.

Returns the TypeCode for class String.
public methodIndexOf

Supported by the .NET Compact Framework.

Overloaded. Reports the index of the first occurrence of a String, or one or more characters, within this instance.
public methodIndexOfAny

Supported by the .NET Compact Framework.

Overloaded. Reports the index of the first occurrence in this instance of any character in a specified array of Unicode characters.
public methodInsert

Supported by the .NET Compact Framework.

Inserts a specified instance of String at a specified index position in this instance.
public methodstatic (Shared in Visual Basic)Intern

Supported by the .NET Compact Framework.

Retrieves the system's reference to the specified String.
public methodstatic (Shared in Visual Basic)IsInterned

Supported by the .NET Compact Framework.

Retrieves a reference to a specified String.
public methodstatic (Shared in Visual Basic)Join

Supported by the .NET Compact Framework.

Overloaded. Concatenates a specified separator String between each element of a specified String array, yielding a single concatenated string.
public methodLastIndexOf

Supported by the .NET Compact Framework.

Overloaded. Reports the index position of the last occurrence of a specified Unicode character or String within this instance.
public methodLastIndexOfAny

Supported by the .NET Compact Framework.

Overloaded. Reports the index position of the last occurrence in this instance of one or more characters specified in a Unicode array.
public methodPadLeft

Supported by the .NET Compact Framework.

Overloaded. Right-aligns the characters in this instance, padding on the left with spaces or a specified Unicode character for a specified total length.
public methodPadRight

Supported by the .NET Compact Framework.

Overloaded. Left-aligns the characters in this string, padding on the right with spaces or a specified Unicode character, for a specified total length.
public methodRemove

Supported by the .NET Compact Framework.

Deletes a specified number of characters from this instance beginning at a specified position.
public methodReplace

Supported by the .NET Compact Framework.

Overloaded. Replaces all occurrences of a specified Unicode character or String in this instance, with another specified Unicode character or String.
public methodSplit

Supported by the .NET Compact Framework.

Overloaded. Identifies the substrings in this instance that are delimited by one or more characters specified in an array, then places the substrings into a String array.
public methodStartsWith

Supported by the .NET Compact Framework.

Determines whether the beginning of this instance matches the specified String.
public methodSubstring

Supported by the .NET Compact Framework.

Overloaded. Retrieves a substring from this instance.
public methodToCharArray

Supported by the .NET Compact Framework.

Overloaded. Copies the characters in this instance to a Unicode character array.
public methodToLower

Supported by the .NET Compact Framework.

Overloaded. Returns a copy of this String in lowercase.
public methodToString

Supported by the .NET Compact Framework.

Overloaded. Overridden. Converts the value of this instance to a String.
public methodToUpper

Supported by the .NET Compact Framework.

Overloaded. Returns a copy of this String in uppercase.
public methodTrim

Supported by the .NET Compact Framework.

Overloaded. Removes all occurrences of a set of specified characters from the beginning and end of this instance.
public methodTrimEnd

Supported by the .NET Compact Framework.

Removes all occurrences of a set of characters specified in an array from the end of this instance.
public methodTrimStart

Supported by the .NET Compact Framework.

Removes all occurrences of a set of characters specified in an array from the beginning of this instance.

Public Operators

public operatorstatic (Shared in Visual Basic)Equality Operator

Supported by the .NET Compact Framework.

Determines whether two specified String objects have the same value.
public operatorstatic (Shared in Visual Basic)Inequality Operator

Supported by the .NET Compact Framework.

Determines whether two specified String objects have different values.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

String Class | System Namespace

Show:
© 2014 Microsoft