UriBuilder.Scheme 属性

定义

获取或设置 URI 的方案名称。

public:
 property System::String ^ Scheme { System::String ^ get(); void set(System::String ^ value); };
public string Scheme { get; set; }
member this.Scheme : string with get, set
Public Property Scheme As String

属性值

URI 的方案。

例外

不能将方案设置为无效的方案名称。

注解

set 访问器根据 RFC 2396 验证方案名称的有效性。 方案名称必须以字母开头,并且必须仅包含字母、数字和字符“.”、“+”或“-”。

适用于

另请参阅