Export (0) Print
Expand All

Uri.Fragment Property

Gets the escaped fragment.

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

Property Value

A string containing any URI fragment information.

Remarks

The Fragment property gets any text following a fragment marker (#) in the URI, including the fragment marker itself. Given the URI http://www.contoso.com/index.htm#main, the fragment property would get #main.

The Fragment property is not considered in any Equals comparison.

Requirements

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

Show:
© 2014 Microsoft