StringUtilsTruncate Method (String, Int32) |
Truncate the specified string to be no longer than the specified length.
The original string is unmodified and the modified string is returned.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static string Truncate(
string s,
int maxLength
)
Public Shared Function Truncate (
s As String,
maxLength As Integer
) As String
Parameters
- s
- Type: SystemString
The string to truncate. - maxLength
- Type: SystemInt32
The maximum length of the string.
Return Value
Type:
StringThe truncated string.
See Also