Поделиться через


ContentDispositionHeaderValue.TryParse Метод

Определение

Перегрузки

TryParse(StringSegment, ContentDispositionHeaderValue)

Пытается проанализировать указанный input объект как ContentDispositionHeaderValue.

TryParse(String, ContentDispositionHeaderValue)

TryParse(StringSegment, ContentDispositionHeaderValue)

Исходный код:
ContentDispositionHeaderValue.cs
Исходный код:
ContentDispositionHeaderValue.cs

Пытается проанализировать указанный input объект как ContentDispositionHeaderValue.

public:
 static bool TryParse(Microsoft::Extensions::Primitives::StringSegment input, [Runtime::InteropServices::Out] Microsoft::Net::Http::Headers::ContentDispositionHeaderValue ^ % parsedValue);
public static bool TryParse (Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.ContentDispositionHeaderValue parsedValue);
public static bool TryParse (Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.ContentDispositionHeaderValue? parsedValue);
static member TryParse : Microsoft.Extensions.Primitives.StringSegment * ContentDispositionHeaderValue -> bool
Public Shared Function TryParse (input As StringSegment, ByRef parsedValue As ContentDispositionHeaderValue) As Boolean

Параметры

input
StringSegment

Значение для анализа.

parsedValue
ContentDispositionHeaderValue

Проанализированное значение.

Возвращаемое значение

true Значение , если входные данные являются допустимыми ContentDispositionHeaderValue, в противном случае — falseзначение .

Применяется к

TryParse(String, ContentDispositionHeaderValue)

public:
 static bool TryParse(System::String ^ input, [Runtime::InteropServices::Out] Microsoft::Net::Http::Headers::ContentDispositionHeaderValue ^ % parsedValue);
public static bool TryParse (string input, out Microsoft.Net.Http.Headers.ContentDispositionHeaderValue parsedValue);
static member TryParse : string * ContentDispositionHeaderValue -> bool
Public Shared Function TryParse (input As String, ByRef parsedValue As ContentDispositionHeaderValue) As Boolean

Параметры

input
String

Возвращаемое значение

Применяется к