StandardFormat.Parse 方法

定義

多載

Parse(ReadOnlySpan<Char>)

使用 NoPrecision 有效位數將 ReadOnlySpan<System.Char> 轉換為 StandardFormat 執行個體。Converts a ReadOnlySpan<System.Char> into a StandardFormat instance using NoPrecision precision.

Parse(String)

將傳統 .NET 標準格式字串轉換為 StandardFormat 執行個體。Converts a classic .NET standard format string to a StandardFormat instance.

Parse(ReadOnlySpan<Char>)

使用 NoPrecision 有效位數將 ReadOnlySpan<System.Char> 轉換為 StandardFormat 執行個體。Converts a ReadOnlySpan<System.Char> into a StandardFormat instance using NoPrecision precision.

public:
 static System::Buffers::StandardFormat Parse(ReadOnlySpan<char> format);
public static System.Buffers.StandardFormat Parse (ReadOnlySpan<char> format);
static member Parse : ReadOnlySpan<char> -> System.Buffers.StandardFormat
Public Shared Function Parse (format As ReadOnlySpan(Of Char)) As StandardFormat

參數

format
ReadOnlySpan<Char>

唯讀範圍,其中包含要剖析的字元。A read-only span that contains the character to parse.

傳回

Symbol 屬性值為 format 中的字元,且其 Precision 屬性值為 NoPrecision 的值。A value whose Symbol property value is the character in format and whose Precision property value is NoPrecision.

Parse(String)

將傳統 .NET 標準格式字串轉換為 StandardFormat 執行個體。Converts a classic .NET standard format string to a StandardFormat instance.

public:
 static System::Buffers::StandardFormat Parse(System::String ^ format);
public static System.Buffers.StandardFormat Parse (string format);
static member Parse : string -> System.Buffers.StandardFormat
Public Shared Function Parse (format As String) As StandardFormat

參數

format
String

傳統 .NET 標準格式字串。A classic .NET standard format string.

傳回

格式。A format.

例外狀況

format 不是有效的標準格式字串。format is not a valid standard format string.

適用於