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!

CompareInfo.IsSuffix (String, String, CompareOptions)

Compares the specified suffix with the string's suffix using flags.

[Visual Basic]
Overloads Overridable Public Function IsSuffix( _
   ByVal source As String, _
   ByVal suffix As String, _
   ByVal options As CompareOptions _
) As Boolean
[C#]
public virtual bool IsSuffix(
   string source,
   string suffix,
   CompareOptions options
);
[C++]
public: virtual bool IsSuffix(
   String* source,
   String* suffix,
   CompareOptions options
);
[JScript]
public function IsSuffix(
   source : String,
   suffix : String,
   options : CompareOptions
) : Boolean;

Parameters

source
The string to search.
suffix
The string suffix to search for within the string.
options
The specified flags are the following data members: IgnoreCase, IgnoreKanaType, IgnoreNonSpace, IgnoreSymbols, IgnoreWidth, and StringSort.

Return Value

true if the suffix argument is the same as the suffix of string or if the suffix is an empty string; false if the length of suffix is greater than the length of string.

Exceptions

Exception Type Condition
NullReferenceException is thrown if string or suffix are [RB25] null.

See Also

CompareInfo Class | CompareInfo Members | System.Globalization Namespace | CompareInfo.IsSuffix Overload List