EntityTagHeaderValue.TryParse 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
TryParse(StringSegment, EntityTagHeaderValue) |
尝试将指定的 |
TryParse(String, EntityTagHeaderValue) |
TryParse(StringSegment, EntityTagHeaderValue)
- Source:
- EntityTagHeaderValue.cs
- Source:
- EntityTagHeaderValue.cs
- Source:
- EntityTagHeaderValue.cs
尝试将指定的 input
解析为 EntityTagHeaderValue。
public:
static bool TryParse(Microsoft::Extensions::Primitives::StringSegment input, [Runtime::InteropServices::Out] Microsoft::Net::Http::Headers::EntityTagHeaderValue ^ % parsedValue);
public static bool TryParse (Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.EntityTagHeaderValue parsedValue);
public static bool TryParse (Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.EntityTagHeaderValue? parsedValue);
static member TryParse : Microsoft.Extensions.Primitives.StringSegment * EntityTagHeaderValue -> bool
Public Shared Function TryParse (input As StringSegment, ByRef parsedValue As EntityTagHeaderValue) As Boolean
参数
- input
- StringSegment
要分析的值。
- parsedValue
- EntityTagHeaderValue
分析的值。
返回
true
如果输入是有效的 EntityTagHeaderValue,则为 ;否则为 false
。
适用于
TryParse(String, EntityTagHeaderValue)
public:
static bool TryParse(System::String ^ input, [Runtime::InteropServices::Out] Microsoft::Net::Http::Headers::EntityTagHeaderValue ^ % parsedValue);
public static bool TryParse (string input, out Microsoft.Net.Http.Headers.EntityTagHeaderValue parsedValue);
static member TryParse : string * EntityTagHeaderValue -> bool
Public Shared Function TryParse (input As String, ByRef parsedValue As EntityTagHeaderValue) As Boolean
参数
- input
- String
- parsedValue
- EntityTagHeaderValue
返回
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈