Uri.UserName Property

Definition

Gets the user name component of the Uniform Resource Identifier (URI) as stored in this Uri instance.

public:
 property Platform::String ^ UserName { Platform::String ^ get(); };
winrt::hstring UserName();
public string UserName { get; }
var string = uri.userName;
Public ReadOnly Property UserName As String

Property Value

String

The user name.

Remarks

Note

username:password**@** preceding the host part of a URI are mainly relevant for File Transfer Protocol (FTP) Uniform Resource Identifier (URI). File Transfer Protocol (FTP) Uniform Resource Identifier (URI) have limited support in Windows Runtime; see "Transferring data in the background" (HTML or XAML).

Applies to