FormattableString.CurrentCulture(FormattableString) Methode

Definition

Gibt eine Ergebniszeichenfolge zurück, in der Argumente mithilfe der Konventionen der aktuellen Kultur formatiert werden.

public:
 static System::String ^ CurrentCulture(FormattableString ^ formattable);
public static string CurrentCulture (FormattableString formattable);
static member CurrentCulture : FormattableString -> string
Public Shared Function CurrentCulture (formattable As FormattableString) As String

Parameter

formattable
FormattableString

Die zu formatierende Zeichenfolge.

Gibt zurück

String

Die Zeichenfolge, die aus dem Formatieren der aktuellen Instanz mithilfe der Konventionen der aktuellen Kultur resultiert.

Hinweise

Diese statische Methode kann in C# oder F# importiert werden, indem:

using static System.FormattableString;

''fsharp open type System.FormattableString

Within the scope of that import directive, an interpolated string may be formatted in the current culture by writing, for example:
```csharp
    CurrentCulture($"{{ lat = {latitude}; lon = {longitude} }}");
    CurrentCulture $"{{ lat = {latitude}; lon = {longitude} }}"

Gilt für