Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

String Members

Represents text as a series of Unicode characters.

The following tables list the members exposed by the String type.

  Name Description
Public method Supported by the .NET Compact Framework String Overloaded. Initializes a new instance of the String class.
Top

  Name Description
Public field Static Supported by the .NET Compact Framework Empty Represents the empty string. This field is read-only.
Top

  Name Description
Public property Supported by the .NET Compact Framework Chars Gets the character at a specified character position in this instance.
Public property Supported by the .NET Compact Framework Length Gets the number of characters in this instance.
Top

  Name Description
Public method Supported by the .NET Compact Framework Clone Returns a reference to this instance of String.
Public method Static Supported by the .NET Compact Framework Compare Overloaded. Compares two specified String objects.
Public method Static CompareOrdinal Overloaded. Compares two String objects by evaluating the numeric values of the corresponding Char objects in each string.
Public method CompareTo Overloaded. Compares this instance with a specified object or String and returns an indication of their relative values.
Public method Static Supported by the .NET Compact Framework Concat Overloaded. Concatenates one or more instances of String, or the String representations of the values of one or more instances of Object.
Public method Contains Returns a value indicating whether the specified String object occurs within this string.
Public method Static Supported by the .NET Compact Framework Copy Creates a new instance of String with the same value as a specified String.
Public method Supported by the .NET Compact Framework CopyTo Copies a specified number of characters from a specified position in this instance to a specified position in an array of Unicode characters.
Public method Supported by the .NET Compact Framework EndsWith Overloaded. Determines whether the end of an instance of String matches a specified string.
Public method Supported by the .NET Compact Framework Equals Overloaded. Overridden. Determines whether two String objects have the same value.
Public method Static Supported by the .NET Compact Framework Format Overloaded. Replaces each format item in a specified String with the text equivalent of a corresponding object's value.
Public method GetEnumerator Retrieves an object that can iterate through the individual characters in this string.
Public method Supported by the .NET Compact Framework GetHashCode Overridden. Returns the hash code for this string.
Public method Supported by the .NET Compact Framework GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Supported by the .NET Compact Framework GetTypeCode Returns the TypeCode for class String.
Public method Supported by the .NET Compact Framework IndexOf Overloaded. Reports the index of the first occurrence of a String, or one or more characters, within this string.
Public method Supported by the .NET Compact Framework IndexOfAny Overloaded. Reports the index of the first occurrence in this instance of any character in a specified array of Unicode characters.
Public method Supported by the .NET Compact Framework Insert Inserts a specified instance of String at a specified index position in this instance.
Public method Static Supported by the .NET Compact Framework Intern Retrieves the system's reference to the specified String.
Public method Static Supported by the .NET Compact Framework IsInterned Retrieves a reference to a specified String.
Public method IsNormalized Overloaded. Indicates whether this string is in a particular Unicode normalization form.
Public method Static Supported by the .NET Compact Framework IsNullOrEmpty Indicates whether the specified String object is a null reference (Nothing in Visual Basic) or an Empty string.
Public method Static Supported by the .NET Compact Framework Join Overloaded. Concatenates a specified separator String between each element of a specified String array, yielding a single concatenated string.
Public method Supported by the .NET Compact Framework LastIndexOf Overloaded. Reports the index position of the last occurrence of a specified Unicode character or String within this instance.
Public method Supported by the .NET Compact Framework LastIndexOfAny Overloaded. Reports the index position of the last occurrence in this instance of one or more characters specified in a Unicode array.
Public method Normalize Overloaded. Returns a new string whose binary representation is in a particular Unicode normalization form.
Public method Static Supported by the .NET Compact Framework op_Equality Determines whether two specified String objects have the same value.
Public method Static Supported by the .NET Compact Framework op_Inequality Determines whether two specified String objects have different values.
Public method Supported by the .NET Compact Framework PadLeft 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 method Supported by the .NET Compact Framework PadRight 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 method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Remove Overloaded. Deletes a specified number of characters from this instance.
Public method Supported by the .NET Compact Framework Replace Overloaded. Replaces all occurrences of a specified Unicode character or String in this instance, with another specified Unicode character or String.
Public method Supported by the .NET Compact Framework Split Overloaded. Returns a String array containing the substrings in this instance that are delimited by elements of a specified Char or String array.
Public method Supported by the .NET Compact Framework StartsWith Overloaded. Determines whether the beginning of an instance of String matches a specified string.
Public method Supported by the .NET Compact Framework Substring Overloaded. Retrieves a substring from this instance.
Public method Supported by the .NET Compact Framework ToCharArray Overloaded. Copies the characters in this instance to a Unicode character array.
Public method Supported by the .NET Compact Framework ToLower Overloaded. Returns a copy of this String converted to lowercase.
Public method ToLowerInvariant Returns a copy of this String object converted to lowercase using the casing rules of the invariant culture.
Public method Supported by the .NET Compact Framework ToString Overloaded. Overridden. Converts the value of this instance to a String.
Public method Supported by the .NET Compact Framework ToUpper Overloaded. Returns a copy of this String converted to uppercase.
Public method Supported by the .NET Compact Framework ToUpperInvariant Returns a copy of this String object converted to uppercase using the casing rules of the invariant culture.
Public method Supported by the .NET Compact Framework Trim Overloaded. Removes all occurrences of a set of specified characters from the beginning and end of this instance.
Public method Supported by the .NET Compact Framework TrimEnd Removes all occurrences of a set of characters specified in an array from the end of this instance.
Public method Supported by the .NET Compact Framework TrimStart Removes all occurrences of a set of characters specified in an array from the beginning of this instance.
Top

  Name Description
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.Generic.IEnumerable<System.Char>.GetEnumerator Returns an enumerator that iterates through the current String object.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IEnumerable.GetEnumerator Returns an enumerator that iterates through the current String object.
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToBoolean Converts the value of the current String object to a Boolean value.
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToByte Converts the value of the current String object to an 8-bit unsigned integer.
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToChar Converts a non-empty string of length one to a Char object.
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToDateTime Converts the value of the current String object to a date and time.
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToDecimal Converts the value of the current String object to a decimal number.
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToDouble Converts the value of the current String object to a double-precision floating-point number.
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToInt16 Converts the value of the current String object to a 16-bit signed integer.
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToInt32 Converts the value of the current String object to a 32-bit signed integer.
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToInt64 Converts the value of the current String object to a 64-bit signed integer.
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToSByte Converts the value of the current String object to an 8-bit signed integer.
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToSingle Converts the value of the current String object to a single-precision floating-point number.
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToType Converts the value of the current String object to an object of a specified type.
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToUInt16 Converts the value of the current String object to a 16-bit unsigned integer.
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToUInt32 Converts the value of the current String object to a 32-bit unsigned integer.
Explicit interface implementation Method Supported by the .NET Compact Framework System.IConvertible.ToUInt64 Converts the value of the current String object to a 64-bit unsigned integer.
Top

Community Additions

Show:
© 2014 Microsoft