TryParseUriCallback 委托

定义

SyndicationFeedFormatter 类用来基于字符串输入创建 Uri 实例的委托类型。A delegate type that is used by the SyndicationFeedFormatter class for creating Uri instances from string input.

public delegate bool TryParseUriCallback(XmlUriData data, [Runtime::InteropServices::Out] Uri ^ % uri);
public delegate bool TryParseUriCallback(XmlUriData data, out Uri uri);
type TryParseUriCallback = delegate of XmlUriData * Uri -> bool
Public Delegate Function TryParseUriCallback(data As XmlUriData, ByRef uri As Uri) As Boolean 

参数

data
XmlUriData

要分析为 Uri 对象的原始字符串输入。The raw string input to parse into a Uri object.

uri
Uri

生成的输入字符串的 Uri 表示形式。The resulting Uri representation of the input string.

返回值

Boolean

一个布尔值,它指示是否已成功分析输入字符串。A boolean value indicating whether or not the input string was successfully parsed.

适用于