Share via


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

TryParse<TInput,TOutput> 委托

定义

尝试分析输入。

public delegate bool TryParse<TInput,TOutput>(TInput input, bool ignoreCase, out TOutput output);
type TryParse<'Input, 'Output> = delegate of 'Input * bool * 'Output -> bool
Public Delegate Function TryParse(Of TInput, TOutput)(input As TInput, ignoreCase As Boolean, ByRef output As TOutput) As Boolean 

类型参数

TInput

输入类型分析。

TOutput

分析输出类型。

参数

input
TInput

要分析的输入对象。

ignoreCase
Boolean

指定要忽略大小写的天气。

output
TOutput

分析的输出对象。

返回值

如果分析成功,则为 True,否则返回 false。

适用于