This documentation is archived and is not being maintained.

Uri.Fragment Property

Gets the escaped fragment.

[Visual Basic]
Public ReadOnly Property Fragment As String
public string Fragment {get;}
public: __property String* get_Fragment();
public function get Fragment() : String;

Property Value

A string containing any URI fragment information.


The Fragment property gets any text following a fragment marker (#) in the URI, including the fragment marker itself. Given the URI, the fragment property would get #main.

The Fragment property is not considered in any Equals comparison.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Uri Class | Uri Members | System Namespace