Edit

Share via


StringExtensions.AsFormat(String, Object[]) Method

Definition

Caution

This method will be removed in a future version of the Toolkit. Use the native C# string interpolation syntax instead, see: https://docs.microsoft.com/dotnet/csharp/language-reference/tokens/interpolated

Provide better linking for resourced strings.

[System.Obsolete("This method will be removed in a future version of the Toolkit. Use the native C# string interpolation syntax instead, see: https://docs.microsoft.com/dotnet/csharp/language-reference/tokens/interpolated")]
public static string AsFormat (this string format, params object[] args);
[<System.Obsolete("This method will be removed in a future version of the Toolkit. Use the native C# string interpolation syntax instead, see: https://docs.microsoft.com/dotnet/csharp/language-reference/tokens/interpolated")>]
static member AsFormat : string * obj[] -> string
<Extension()>
Public Function AsFormat (format As String, ParamArray args As Object()) As String

Parameters

format
String

The format of the string being linked.

args
Object[]

The object which will receive the linked String.

Returns

Truncated string.

Attributes

Applies to