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

Die Zeichenfolge, die aus der Formatierung der aktuellen Instanz mit den Konventionen der aktuellen Kultur resultiert.

Hinweise

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

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: