StringUtils.EllipsisHash Method
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.
Overloads
EllipsisHash(String, Int32) |
EllipsisHash - return truncated string with unique hash for the truncated part. |
EllipsisHash(StringBuilder, Int32) |
EllipsisHash - return truncated string with unique hash for the truncated part. |
EllipsisHash(String, Int32)
EllipsisHash - return truncated string with unique hash for the truncated part.
public static string EllipsisHash (string text, int length);
static member EllipsisHash : string * int -> string
Public Shared Function EllipsisHash (text As String, length As Integer) As String
Parameters
- text
- String
text to truncate.
- length
- Int32
length to truncate at.
Returns
prefix up to length + ... + uniquehash(text).
Applies to
EllipsisHash(StringBuilder, Int32)
EllipsisHash - return truncated string with unique hash for the truncated part.
public static System.Text.StringBuilder EllipsisHash (System.Text.StringBuilder sb, int length);
static member EllipsisHash : System.Text.StringBuilder * int -> System.Text.StringBuilder
Public Shared Function EllipsisHash (sb As StringBuilder, length As Integer) As StringBuilder
Parameters
text to truncate.
- length
- Int32
length to truncate at.
Returns
original stringbuilder modified.