UriParts Property

HttpServer.dll

Uri absolute path splitted into parts.

Namespace:  HttpServer
Assembly:  HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public string[] UriParts { get; }
Visual Basic (Declaration)
Public ReadOnly Property UriParts As String()
Visual C++
public:
property array<String^>^ UriParts {
	array<String^>^ get ();
}

Remarks

If you're using controllers than the first part is controller name, the second part is method name and the third part is Id property.

Examples

// uri is: http://gauffin.com/code/tiny/ Console.WriteLine(request.UriParts[0]); // result: code Console.WriteLine(request.UriParts[1]); // result: tiny

See Also