Partilhar via


HeaderUtilities.TryParseDate Método

Definição

Sobrecargas

TryParseDate(StringSegment, DateTimeOffset)

Tenta analisar o especificado input como um DateTimeOffset valor.

TryParseDate(String, DateTimeOffset)

TryParseDate(StringSegment, DateTimeOffset)

Origem:
HeaderUtilities.cs
Origem:
HeaderUtilities.cs
Origem:
HeaderUtilities.cs

Tenta analisar o especificado input como um DateTimeOffset valor.

public:
 static bool TryParseDate(Microsoft::Extensions::Primitives::StringSegment input, [Runtime::InteropServices::Out] DateTimeOffset % result);
public static bool TryParseDate (Microsoft.Extensions.Primitives.StringSegment input, out DateTimeOffset result);
static member TryParseDate : Microsoft.Extensions.Primitives.StringSegment * DateTimeOffset -> bool
Public Shared Function TryParseDate (input As StringSegment, ByRef result As DateTimeOffset) As Boolean

Parâmetros

input
StringSegment

O valor de entrada.

result
DateTimeOffset

O valor analisado.

Retornos

true se input puder ser analisado como uma data, caso contrário false, .

Aplica-se a

TryParseDate(String, DateTimeOffset)

public:
 static bool TryParseDate(System::String ^ input, [Runtime::InteropServices::Out] DateTimeOffset % result);
public static bool TryParseDate (string input, out DateTimeOffset result);
static member TryParseDate : string * DateTimeOffset -> bool
Public Shared Function TryParseDate (input As String, ByRef result As DateTimeOffset) As Boolean

Parâmetros

input
String

Retornos

Aplica-se a