Edit

Share via


UriBuilder.Scheme Property

Definition

Gets or sets the scheme name of the 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

Property Value

The scheme of the URI.

Exceptions

The scheme cannot be set to an invalid scheme name.

Remarks

The set accessor validates the scheme name for validity according to RFC 2396. The scheme name must begin with a letter and must contain only letters, digits, and the characters ".", "+", or "-".

Applies to

See also