Uniquifier.Truncate 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
Truncate(String, Int32, Nullable<Int32>) |
Ensures the given identifier is shorter than the given length by removing the extra characters from the end. |
Truncate(String, Int32, String, Nullable<Int32>) |
Ensures the given identifier is shorter than the given length by removing the extra characters from the end. |
Truncate(String, Int32, Nullable<Int32>)
- Source:
- Uniquifier.cs
- Source:
- Uniquifier.cs
- Source:
- Uniquifier.cs
- Source:
- Uniquifier.cs
- Source:
- Uniquifier.cs
- Source:
- Uniquifier.cs
- Source:
- Uniquifier.cs
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
Truncate(String, Int32, String, Nullable<Int32>)
- Source:
- Uniquifier.cs
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, string? suffix, int? uniquifier = default);
static member Truncate : string * int * string * Nullable<int> -> string
Public Shared Function Truncate (identifier As String, maxLength As Integer, suffix As String, Optional uniquifier As Nullable(Of Integer) = Nothing) As String
Parameters
- identifier
- String
The identifier to shorten.
- maxLength
- Int32
The maximum length of the identifier.
- suffix
- String
An optional suffix to add after the uniquifier.
Returns
The shortened identifier.
Applies to
Entity Framework