Uniquifier.Truncate(String, Int32, Nullable<Int32>) 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.
Ensures the given identifier is shorter than the given length by removing the extra characters from the end.
public static string Truncate (string identifier, int maxLength, int? uniquifier = default);
static member Truncate : string * int * Nullable<int> -> string
Public Shared Function Truncate (identifier As String, maxLength As Integer, Optional uniquifier As Nullable(Of Integer) = Nothing) As String
Parameters
- identifier
- String
The identifier to shorten.
- maxLength
- Int32
The maximum length of the identifier.
Returns
The shortened identifier.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework