C# Class OpenStack.Net.UriExtensions

Provides extension methods to support consistent Uri API operations across multiple versions of the .NET framework.
Show file Open project: crowdy/OpenStack-ConoHa

Public Methods

Method Description
GetSegments ( this uri ) : string[]

Gets an array of individual segments of the Uri.AbsolutePath of a Uri.

The array returned by this method has the following properties. The first item in the array is the root segment /. Each item in the array except the last ends with a trailing /. The last item in the array only contains a trailing / if the absolute path of the URI ends with a /.

Method Details

GetSegments() public static method

Gets an array of individual segments of the Uri.AbsolutePath of a Uri.
The array returned by this method has the following properties. The first item in the array is the root segment /. Each item in the array except the last ends with a trailing /. The last item in the array only contains a trailing / if the absolute path of the URI ends with a /.
If is . If is a relative URI.
public static GetSegments ( this uri ) : string[]
uri this The instance.
return string[]