NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

String Methods

The methods of the String class are listed below. For a complete list of String class members, see the String Members topic.

Public:

Clone Returns this string.
Compare Overloaded. Compares two strings.
CompareOrdinal Overloaded. Compares two string regions by an ordinal comparison.
CompareTo Overloaded. Compares this instance with specified instance.
Concat Overloaded. Creates a new string from two strings.
Copy Creates a new string by copying another string.
CopyTo Copies a specified number of characters from a specified location in this string to a specified location in an array.
EndsWith Determines whether a specified string is a suffix of the current instance.
Equals Overloaded. Determines whether two objects match.
Format Overloaded. Replaces zero or more format specifications with the appropriately formatted value of an object.
GetHashCode Gets a hash code for this string.
GetType (inherited from Object) Gets the Type of the Object.
GetTypeCode Retrieves the type code of an object.
IndexOf Overloaded. Returns the index of the first occurrence.
Insert Returns a new string with a specified value inserted at a specified position in this string.
Intern Retrieves the reference for the string.
IsInterned Retrieves the reference for the string.
Join Overloaded. [To be supplied.]
LastIndexOf Overloaded. Gets the position of the last occurrence of the specified character in this string.
PadLeft Overloaded. Returns this string left-aligned in a field.
PadRight Overloaded. Returns this string right-aligned in a field and padded with spaces.
Remove Deletes a specified number of characters from this String beginning at a specified location.
Replace Replaces all instances of a specified character with a new one.
Split Overloaded. Creates an array of strings by splitting this string.
StartsWith Determines whether a specified string is a prefix of the current instance.
Substring Overloaded. [To be supplied.]
ToBoolean Converts a string to a Boolean value.
ToByte Converts a string to a value in the specified base, represented as an 8-bit unsigned Byte.
ToChar Converts a non-empty string of length one to a Char.
ToCharArray Overloaded. Returns a string as an array of characters.
ToDateTime Returns the specified string converted to DateTime format.
ToDecimal Converts a string to a Decimal.
ToDouble Converts a string to a Double.
ToInt16 Converts a specified string to an Int16 in the specified base.
ToInt32 Converts a string to an Int32.
ToInt64 Converts a string to an Int64 value.
ToLower Overloaded. Creates a copy of this string in lower case.
ToSByte Converts an SByte to a string.
ToSingle Returns a string representing the specified number as a Single.
ToString Returns the current instance of string.
ToType Retrieves the Type for a specified object.
ToUInt16 Converts a string to a UInt16 value.
ToUInt32 Converts a string to a UInt32 value.
ToUInt64 Converts a string to a UInt64 value.
ToUpper Overloaded. Creates a copy of this string in upper case.
Trim Overloaded. Trims white space from a string.
TrimEnd Removes a string of characters from the end of this string.
TrimStart Removes characters from the beginning of this string.

Protected:

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

String Class | System Namespace