Compartilhar via


Url.Segments Property

Gets an array of the segments of the URL.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public ReadOnly Property Segments As String()
public string[] Segments { get; }
public:
property array<String^>^ Segments {
    array<String^>^ get ();
}
member Segments : string[] with get
function get Segments () : String[]

Property Value

Type: array<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.

.NET Framework Security

See Also

Reference

Url Class

Microsoft.VisualStudio.Shell Namespace