We couldn’t find this entry. Showing approximate results. Check your spelling or suggest adding this term to the dictionary.
String.Format
String.Format-Methode
The String.Format method uses the composite formatting feature to replace one or more placeholders in a string with the string representation of some object or value.
Die String.Format Methode verwendet die Funktion für kombinierte Formatierung, um einen oder mehrere Platzhalter in einer Zeichenfolge durch die Zeichenfolgendarstellung für einige Objekte oder Werte zu ersetzen.
Now provides IntelliSense for the String.Format and interpolated string format items.
Enthält jetzt IntelliSense für das String.Format und interpolierte String-Format-Elemente.
If you worked with the Microsoft.Net Framework, you will know the String.Format method.
Wenn du bereits mit dem Microsoft.Net Framework gearbeitet hast, wirst du die String.Format-Methode kennen.
Custom numeric format strings are also supported by the.NET Framework composite formatting feature, which is used by some Write and WriteLine methods of the Console and StreamWriter classes, the String.Format method, and the StringBuilder.AppendFormat method.
Benutzerdefinierte numerische Formatzeichenfolgen werden auch von der.NET Framework-Funktion für die kombinierte Formatierung unterstützt, die von einigen Write-Methoden und WriteLine-Methoden der Console-Klasse und der StreamWriter-Klasse, der String.Format-Methode und der StringBuilder.AppendFormat-Methode verwendet wird.
Weitere Informationen zu impliziten numerischen Konvertierungen You can format the results by using the String.Format method, or through the Console.Write method, which calls String.Format().
Sie können die Ergebnisse mithilfe der String.Format-Methode oder der Console.Write-Methode formatieren, durch die String.Format() aufgerufen wird.Das Währungsformat wird mit der Standardwährungsformat-Zeichenfolge "C" oder "c" angegeben, wie in Beispiel 2 weiter unten in diesem Artikel dargestellt.String.Format.
After writing or copying (your welcome, but please keep the line), this function into your own project, you can simply use the example I showed for.net String.Format in your VBA code.
Public Nachdem du diese Funktion in deiner Anwendung geschrieben oder kopiert hast (gerne; aber bitte lass die -Zeile drin), kannst du das.Net-Beispiel von oben für String.Format in deinem Code verwenden.
ou - or- O Instead of calling the String.Format method or using composite format strings, you can use interpolated strings if your language supports them. interpoladas.An interpolated string is a string that contains interpolated expressions.
Statt die Methode String.Format aufzurufen oder Zeichenfolgen mit kombinierter Formatierung zu verwenden, können Sie interpolierte Zeichenfolgen verwenden, wenn diese von Ihrer Sprache unterstützt werden.interpolierte Ausdrücke enthält.An interpolated string is a string that contains interpolated expressions.
String interpolation is transformed at compile time to invoke an equivalent string.Format call.
Die Zeichenfolgeninterpolation wird zur Kompilierungszeit transformiert, um einen äquivalenten Aufruf „string.Format" auszuführen.
Prior to C# 6.0, you'd do this using string.Format in order to embed the filename into the string literal.
Vor C# 6.0 geschah dies mithilfe von „string.Format", um den Dateinamen in das Zeichenfolgenliteral einzubetten.
The string.Format method isn't currently supported in the.NET Micro Framework; therefore, I used StringBuilder.Replace to construct the authorizationHeader.
Die Zeichenfolge.Format-Methode wird derzeit in.NET Micro Framework nicht unterstützt; Daher habe ich StringBuilder.Replace, um die AuthorizationHeader zu konstruieren.
The StringFormat property does exactly what the name implies: It formats the output string, simply by calling the String.Format method.
the value of objects to strings based on the formats specified and inserts them into another If you are new to the String.Format method, see the Get started with the String.Format method section for a quick overview.
Assemblies: System.Runtime.dll, mscorlib.dll, netstandard.dll Konvertiert auf der Grundlage der angegebenen Formate den Wert von Objekten in Zeichenfolgen und fügt sie in eine andere Zeichenfolge ein.Converts string.
What is also rarely mentioned though (much less documented), is that these localized messages can use string.Format placeholders.
Was hingegen selten erwähnt wird (auch in der Dokumentation nicht) ist die Möglichkeit, string.Format-Platzhalter zu verwenden.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.