Share via


FragmentString.ToUriComponent 方法

定义

以正确方式提供转义的片段字符串,适合合并到 URI 表示形式中。 除非 Value 为 null 或空,否则将包含前导“#”字符。 将对可能很危险的字符进行转义。

public:
 System::String ^ ToUriComponent();
public string ToUriComponent ();
member this.ToUriComponent : unit -> string
Public Function ToUriComponent () As String

返回

片段字符串值

适用于