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)

Compares the specified suffix with the string's suffix.

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

Parameters

source
The string to search.
suffix
The suffix to search for within the string.

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 [RB24] null.

See Also

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