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;
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.
Exception Type | Condition |
---|---|
NullReferenceException | is thrown if string or suffix are [RB25] null. |
CompareInfo Class | CompareInfo Members | System.Globalization Namespace | CompareInfo.IsSuffix Overload List