Share via


Truncation.Truncate Method

Definition

Overloads

Truncate(String)
Truncate(Object, Int32)
Truncate(String, Int32)

Truncate(String)

public:
 static System::String ^ Truncate(System::String ^ s);
public static string Truncate (string s);
static member Truncate : string -> string
Public Shared Function Truncate (s As String) As String

Parameters

s
String

Returns

Applies to

Truncate(Object, Int32)

public:
 static System::String ^ Truncate(System::Object ^ o, int length);
public static string Truncate (object o, int length);
static member Truncate : obj * int -> string
Public Shared Function Truncate (o As Object, length As Integer) As String

Parameters

o
Object
length
Int32

Returns

Applies to

Truncate(String, Int32)

public:
 static System::String ^ Truncate(System::String ^ s, int length);
public static string Truncate (string s, int length);
static member Truncate : string * int -> string
Public Shared Function Truncate (s As String, length As Integer) As String

Parameters

s
String
length
Int32

Returns

Applies to