Uri.UserInfo Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the user name, password, or other user-specific information associated with the specified URI.
Assembly: System (in System.dll)
Property Value
Type: System.StringA String that contains the user information associated with the URI. The returned value does not include the '@' character reserved for delimiting the user information part of the URI.
| Exception | Condition |
|---|---|
| InvalidOperationException | This property is valid only for an absolute Uri instance. |
The following example creates a Uri instance and writes the user information to the console.
Show: