StringExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Helpers for working with strings and string representations.
public static class StringExtensions
type StringExtensions = class
Public Module StringExtensions
- Inheritance
-
StringExtensions
Methods
AsFormat(String, Object[]) |
Obsolete.
Provide better linking for resourced strings. |
DecodeHtml(String) |
Returns a string with HTML comments, scripts, styles, and tags removed. |
FixHtml(String) |
Returns a string with HTML comments, scripts, and styles removed. |
IsCharacterString(String) |
Determines whether a string contains only letters. |
IsDecimal(String) |
Determines whether a string is a valid decimal number. |
IsEmail(String) |
Determines whether a string is a valid email address. |
IsNumeric(String) |
Determines whether a string is a valid integer. |
IsPhoneNumber(String) |
Determines whether a string is a valid phone number. |
Truncate(String, Int32, Boolean) |
Truncates a string to the specified length. |
Truncate(String, Int32) |
Truncates a string to the specified length. |