共用方式為


ContentDispositionHeaderValue.TryParse 方法

定義

多載

TryParse(StringSegment, ContentDispositionHeaderValue)

嘗試將指定的 input 剖析為 ContentDispositionHeaderValue

TryParse(String, ContentDispositionHeaderValue)

TryParse(StringSegment, ContentDispositionHeaderValue)

來源:
ContentDispositionHeaderValue.cs
來源:
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

傳回

適用於