다음을 통해 공유


Url.Segments Property

Definition

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.

Applies to