CompareInfo Methods

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

The CompareInfo type exposes the following members.

Methods

  Name Description
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Compare(String, String) Compares two strings and returns an integer that indicates their relationship to one another in the sort order.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Compare(String, String, CompareOptions) Compares two strings using the specified CompareOptions value and returns an integer that indicates their relationship to one another in the sort order.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Compare(String, Int32, String, Int32) Compares the end section of a string with the end section of another string and returns an integer that indicates their relationship to one another in the sort order.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Compare(String, Int32, String, Int32, CompareOptions) Compares the end section of a string with the end section of another string using the specified CompareOptions value and returns an integer that indicates their relationship to one another in the sort order.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Compare(String, Int32, Int32, String, Int32, Int32) Compares a section of one string with a section of another string and returns an integer that indicates their relationship to one another in the sort order.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Compare(String, Int32, Int32, String, Int32, Int32, CompareOptions) Compares a section of one string with a section of another string using the specified CompareOptions value and returns an integer that indicates their relationship to one another in the sort order.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Equals Determines whether the specified object is equal to the current CompareInfo object. (Overrides Object.Equals(Object).)
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetCompareInfo Initializes a new CompareInfo object that is associated with the culture with the specified name.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetHashCode Serves as a hash function for the current CompareInfo for hashing algorithms and data structures, such as a hash table. (Overrides Object.GetHashCode().)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IndexOf(String, Char) Searches for the specified character and returns the zero-based index of the first occurrence within the entire source string.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IndexOf(String, String) Searches for the specified substring and returns the zero-based index of the first occurrence within the entire source string.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IndexOf(String, Char, CompareOptions) Searches for the specified character and returns the zero-based index of the first occurrence within the entire source string using the specified CompareOptions value.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IndexOf(String, String, CompareOptions) Searches for the specified substring and returns the zero-based index of the first occurrence within the entire source string using the specified CompareOptions value.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IndexOf(String, Char, Int32, CompareOptions) Searches for the specified character and returns the zero-based index of the first occurrence within the section of the source string that extends from the specified index to the end of the string using the specified CompareOptions value.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IndexOf(String, Char, Int32, Int32) Searches for the specified character and returns the zero-based index of the first occurrence within the section of the source string that starts at the specified index and contains the specified number of elements.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IndexOf(String, String, Int32, CompareOptions) Searches for the specified substring and returns the zero-based index of the first occurrence within the section of the source string that extends from the specified index to the end of the string using the specified CompareOptions value.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IndexOf(String, String, Int32, Int32) Searches for the specified substring and returns the zero-based index of the first occurrence within the section of the source string that starts at the specified index and contains the specified number of elements.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IndexOf(String, Char, Int32, Int32, CompareOptions) Searches for the specified character and returns the zero-based index of the first occurrence within the section of the source string that starts at the specified index and contains the specified number of elements using the specified CompareOptions value.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IndexOf(String, String, Int32, Int32, CompareOptions) Searches for the specified substring and returns the zero-based index of the first occurrence within the section of the source string that starts at the specified index and contains the specified number of elements using the specified CompareOptions value.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IsPrefix(String, String) Determines whether the specified source string starts with the specified prefix.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IsPrefix(String, String, CompareOptions) Determines whether the specified source string starts with the specified prefix using the specified CompareOptions value.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IsSuffix(String, String) Determines whether the specified source string ends with the specified suffix.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IsSuffix(String, String, CompareOptions) Determines whether the specified source string ends with the specified suffix using the specified CompareOptions value.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 LastIndexOf(String, Char) Searches for the specified character and returns the zero-based index of the last occurrence within the entire source string.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 LastIndexOf(String, String) Searches for the specified substring and returns the zero-based index of the last occurrence within the entire source string.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 LastIndexOf(String, Char, CompareOptions) Searches for the specified character and returns the zero-based index of the last occurrence within the entire source string using the specified CompareOptions value.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 LastIndexOf(String, String, CompareOptions) Searches for the specified substring and returns the zero-based index of the last occurrence within the entire source string using the specified CompareOptions value.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 LastIndexOf(String, Char, Int32, CompareOptions) Searches for the specified character and returns the zero-based index of the last occurrence within the section of the source string that extends from the beginning of the string to the specified index using the specified CompareOptions value.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 LastIndexOf(String, Char, Int32, Int32) Searches for the specified character and returns the zero-based index of the last occurrence within the section of the source string that contains the specified number of elements and ends at the specified index.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 LastIndexOf(String, String, Int32, CompareOptions) Searches for the specified substring and returns the zero-based index of the last occurrence within the section of the source string that extends from the beginning of the string to the specified index using the specified CompareOptions value.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 LastIndexOf(String, String, Int32, Int32) Searches for the specified substring and returns the zero-based index of the last occurrence within the section of the source string that contains the specified number of elements and ends at the specified index.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 LastIndexOf(String, Char, Int32, Int32, CompareOptions) Searches for the specified character and returns the zero-based index of the last occurrence within the section of the source string that contains the specified number of elements and ends at the specified index using the specified CompareOptions value.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 LastIndexOf(String, String, Int32, Int32, CompareOptions) Searches for the specified substring and returns the zero-based index of the last occurrence within the section of the source string that contains the specified number of elements and ends at the specified index using the specified CompareOptions value.
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString Returns a string that represents the current CompareInfo. (Overrides Object.ToString().)

Top