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;
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 [RB24] null. |
CompareInfo Class | CompareInfo Members | System.Globalization Namespace | CompareInfo.IsSuffix Overload List