System.Uri.UserInfo Property

Gets the user name, password, or other user-specific information associated with the specified URI.

Syntax

public string UserInfo { get; }

Value

A string containing any user information included in the URI used to construct the current instance, or string.Empty if no user information was included.

Remarks

The value returned by this property is usually in the format "userName:password".

Requirements

Namespace: System
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0