Uri.TryFormat(Span<Char>, Int32) 方法  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
尝试将实例的规范字符串表示形式 Uri 格式化为指定的范围。
public:
 bool TryFormat(Span<char> destination, [Runtime::InteropServices::Out] int % charsWritten);
	public bool TryFormat(Span<char> destination, out int charsWritten);
	member this.TryFormat : Span<char> * int -> bool
	Public Function TryFormat (destination As Span(Of Char), ByRef charsWritten As Integer) As Boolean
	参数
- charsWritten
 - Int32
 
此方法返回时,包含写入 的 destination字符数。
返回
如果格式设置成功,则为 true;否则为 false。