The methods of System.String are listed below. For a list of all members, see the String Members list.
See Also: Inherited members from System.Object
Clone()Returns a reference to the current instance of string. | ||
static | Compare(string, string)Compares two string objects in a case-sensitive manner. | |
static | Compare(string, string, bool)Returns sort order of two string objects, ignoring or honoring their case. | |
static | Compare(string, string, StringComparison)Documentation for this section has not yet been entered. | |
static | Compare(string, string, bool, System.Globalization.CultureInfo)Documentation for this section has not yet been entered. | |
static | Compare(string, string, System.Globalization.CultureInfo, System.Globalization.CompareOptions)Documentation for this section has not yet been entered. | |
static | Compare(string, int, string, int, int)Compares substrings of two strings. | |
static | Compare(string, int, string, int, int, bool)Compares substrings of two strings, ignoring or honoring their case. | |
static | Compare(string, int, string, int, int, StringComparison)Documentation for this section has not yet been entered. | |
static | Compare(string, int, string, int, int, bool, System.Globalization.CultureInfo)Documentation for this section has not yet been entered. | |
static | Compare(string, int, string, int, int, System.Globalization.CultureInfo, System.Globalization.CompareOptions)Documentation for this section has not yet been entered. | |
static | CompareOrdinal(string, string)Compares two specified string objects based on the code points of the contained Unicode characters. | |
static | CompareOrdinal(string, int, string, int, int)Compares substrings of two specified string objects based on the code points of the contained Unicode characters. | |
CompareTo(object)Returns the sort order of the current instance compared to the specified object. | ||
CompareTo(string)Returns the sort order of the current instance compared to the specified string. | ||
static | Concat(IEnumerable<string>)Documentation for this section has not yet been entered. | |
static | Concat(object)Documentation for this section has not yet been entered. | |
static | Concat(params object[])Concatenates the string representations of the elements in an array of object instances. | |
static | Concat(params string[])Concatenates the elements of a specified array. | |
static | Concat(object, object)Concatenates the string representations of two specified objects. | |
static | Concat(string, string)Concatenates two specified instances of string. | |
static | Concat(object, object, object)Concatenates the string representations of three specified objects, in order provided. | |
static | Concat(string, string, string)Concatenates three specified instances of string. | |
static | Concat(object, object, object, object)Documentation for this section has not yet been entered. | |
static | Concat(string, string, string, string)Documentation for this section has not yet been entered. | |
static | Concat<T>(IEnumerable<T>)Documentation for this section has not yet been entered. | |
Contains(string)Documentation for this section has not yet been entered. | ||
static | Copy(string)Creates a new instance of string with the same value as a specified instance of string. | |
CopyTo(int, char[], int, int)Copies a specified number of characters from a specified position in the current string instance to a specified position in a specified array of Unicode characters. | ||
EndsWith(string)Returns a bool value that indicates whether the ending characters of the current instance match the specified string. | ||
EndsWith(string, StringComparison)Documentation for this section has not yet been entered. | ||
EndsWith(string, bool, System.Globalization.CultureInfo)Documentation for this section has not yet been entered. | ||
override | Equals(object)Determines whether the current instance and the specified object have the same value. | |
Equals(string)Determines whether the current instance and the specified string have the same value. | ||
static | Equals(string, string)Determines whether two specified string objects have the same value. | |
Equals(string, StringComparison)Documentation for this section has not yet been entered. | ||
static | Equals(string, string, StringComparison)Documentation for this section has not yet been entered. | |
static | Format(string, object)Replaces the format specification in a provided string with a specified textual equivalent of the value of a specified object instance. | |
static | Format(string, params object[])Replaces the format specification in a specified string with the textual equivalent of the value of a corresponding object instance in a specified array. | |
static | Format(IFormatProvider, string, params object[])Replaces the format specification in a specified string with the culture-specific textual equivalent of the value of a corresponding object instance in a specified array. | |
static | Format(string, object, object)Replaces the format specification in a specified string with the textual equivalent of the value of two specified object instances. | |
static | Format(string, object, object, object)Replaces the format specification in a specified string with the textual equivalent of the value of three specified object instances. | |
GetEnumerator()Retrieves an object that can iterate through the individual characters in the current instance. | ||
override | GetHashCode()Generates a hash code for the current instance. | |
GetTypeCode()Documentation for this section has not yet been entered. | ||
IndexOf(char)Returns the index of the first occurrence of a specified Unicode character in the current instance. | ||
IndexOf(string)Returns the index of the first occurrence of a specified string in the current instance. | ||
IndexOf(char, int)Returns the index of the first occurrence of a specified Unicode character in the current instance, with the search starting from a specified index. | ||
IndexOf(string, int)Returns the index of the first occurrence of a specified string in the current instance, with the search starting from a specified index. | ||
IndexOf(string, StringComparison)Documentation for this section has not yet been entered. | ||
IndexOf(char, int, int)Returns the index of the first occurrence of a specified Unicode character in the current instance, with the search over the specified range starting at the provided index. | ||
IndexOf(string, int, int)Returns the index of the first occurrence of a specified string in the current instance, with the search over the specified range starting at the provided index. | ||
IndexOf(string, int, StringComparison)Documentation for this section has not yet been entered. | ||
IndexOf(string, int, int, StringComparison)Documentation for this section has not yet been entered. | ||
IndexOfAny(char[])Reports the index of the first occurrence in the current instance of any character in a specified array of Unicode characters. | ||
IndexOfAny(char[], int)Returns the index of the first occurrence of any element in a specified array of Unicode characters in the current instance, with the search starting from a specified index. | ||
IndexOfAny(char[], int, int)Returns the index of the first occurrence of any element in a specified Array of Unicode characters in the current instance, with the search over the specified range starting from the provided index. | ||
Insert(int, string)Returns a string equivalent to the current instance with a specified string inserted at the specified position. | ||
static | Intern(string)Retrieves the system's reference to a specified string. | |
static | IsInterned(string)Retrieves a reference to a specified string. | |
IsNormalized()Documentation for this section has not yet been entered. | ||
IsNormalized(System.Text.NormalizationForm)Documentation for this section has not yet been entered. | ||
static | IsNullOrEmpty(string)Documentation for this section has not yet been entered. | |
static | IsNullOrWhiteSpace(string)Documentation for this section has not yet been entered. | |
static | Join(string, IEnumerable<string>)Documentation for this section has not yet been entered. | |
static | Join(string, params object[])Documentation for this section has not yet been entered. | |
static | Join(string, string[])Concatenates the elements of a specified string array, inserting a separator string between each element pair and yielding a single concatenated string. | |
static | Join(string, string[], int, int)Concatenates a specified separator string between the elements of a specified string array, yielding a single concatenated string. | |
static | Join<T>(string, IEnumerable<T>)Documentation for this section has not yet been entered. | |
LastIndexOf(char)Returns the index of the last occurrence of a specified character within the current instance. | ||
LastIndexOf(string)Returns the index of the last occurrence of a specified string within the current instance. | ||
LastIndexOf(char, int)Returns the index of the last occurrence of a specified character within the current instance. | ||
LastIndexOf(string, int)Returns the index of the last occurrence of a specified string within the current instance, starting at a given position. | ||
LastIndexOf(string, StringComparison)Documentation for this section has not yet been entered. | ||
LastIndexOf(char, int, int)Returns the index of the last occurrence of a specified character in the provided range of the current instance. | ||
LastIndexOf(string, int, int)Returns the index of the last occurrence of a specified string in the provided range of the current instance. | ||
LastIndexOf(string, int, StringComparison)Documentation for this section has not yet been entered. | ||
LastIndexOf(string, int, int, StringComparison)Documentation for this section has not yet been entered. | ||
LastIndexOfAny(char[])Returns the index of the last occurrence of any element of a specified array of characters in the current instance. | ||
LastIndexOfAny(char[], int)Returns the index of the last occurrence of any element of a specified array of characters in the current instance. | ||
LastIndexOfAny(char[], int, int)Returns the index of the last occurrence of any of specified characters in the provided range of the current instance. | ||
Normalize()Documentation for this section has not yet been entered. | ||
Normalize(System.Text.NormalizationForm)Documentation for this section has not yet been entered. | ||
PadLeft(int)Right-aligns the characters in the current instance, padding with spaces on the left, for a specified total length. | ||
PadLeft(int, char)Right-aligns the characters in the current instance, padding on the left with a specified Unicode character, for a specified total length. | ||
PadRight(int)Left-aligns the characters in the current instance, padding with spaces on the right, for a specified total number of characters. | ||
PadRight(int, char)Left-aligns the characters in the current instance, padding on the right with a specified Unicode character, for a specified total number of characters. | ||
Remove(int)Documentation for this section has not yet been entered. | ||
Remove(int, int)Deletes a specified number of characters from the current instance beginning at a specified index. | ||
Replace(char, char)Replaces all instances of a specified Unicode character with another specified Unicode character. | ||
Replace(string, string)Replaces all instances of a specified substring within the current instance with another specified string. | ||
Split(params char[])Returns substrings of the current instance that are delimited by the specified characters. | ||
Split(char[], int)Returns substrings of the current instance that are delimited by the specified characters. | ||
Split(char[], StringSplitOptions)Documentation for this section has not yet been entered. | ||
Split(string[], StringSplitOptions)Documentation for this section has not yet been entered. | ||
Split(char[], int, StringSplitOptions)Documentation for this section has not yet been entered. | ||
Split(string[], int, StringSplitOptions)Documentation for this section has not yet been entered. | ||
StartsWith(string)Returns a bool value that indicates whether the start of the current instance matches the specified string. | ||
StartsWith(string, StringComparison)Documentation for this section has not yet been entered. | ||
StartsWith(string, bool, System.Globalization.CultureInfo)Documentation for this section has not yet been entered. | ||
Substring(int)Retrieves a substring from the current instance, starting from a specified index. | ||
Substring(int, int)Retrieves a substring from the current instance, starting from a specified index, continuing for a specified length. | ||
ToCharArray()Copies the characters in the current instance to a Unicode character array. | ||
ToCharArray(int, int)Copies the characters in a specified substring in the current instance to a Unicode character array. | ||
ToLower()Returns a copy of this string in lowercase. | ||
ToLower(System.Globalization.CultureInfo)Documentation for this section has not yet been entered. | ||
ToLowerInvariant()Documentation for this section has not yet been entered. | ||
override | ToString()Returns a string representation of the value of the current instance. | |
ToString(IFormatProvider)Returns this instance of String; no actual conversion is performed. | ||
ToUpper()Returns a copy of the current instance with all elements converted to uppercase, using default properties. | ||
ToUpper(System.Globalization.CultureInfo)Documentation for this section has not yet been entered. | ||
ToUpperInvariant()Documentation for this section has not yet been entered. | ||
Trim()Removes all occurrences of white space characters from the beginning and end of the current instance. | ||
Trim(params char[])Removes all occurrences of a set of characters provided in a character Array from the beginning and end of the current instance. | ||
TrimEnd(params char[])Removes all occurrences of a set of characters specified in a Unicode character Array from the end of the current instance. | ||
TrimStart(params char[])Removes all occurrences of a set of characters specified in a Unicode character array from the beginning of the current instance. | ||