Url.Segments Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an array of the segments of the URL.
public:
property cli::array <System::String ^> ^ Segments { cli::array <System::String ^> ^ get(); };
public:
property Platform::Array <Platform::String ^> ^ Segments { Platform::Array <Platform::String ^> ^ get(); };
public string[] Segments { get; }
member this.Segments : string[]
Public ReadOnly Property Segments As String()
Property Value
String[]
An array of the segments of the URL.
Remarks
This method works on both absolute and relative paths, and the returned segments have the path separator stripped out. It also strips "http:" and the hostname from the path.