共用方式為


Url.Directory Property

Returns the unescaped absolute URL for the parent directory that contains the file that is referenced by this URL object.

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

Syntax

'宣告
Public ReadOnly Property Directory As String
public string Directory { get; }

Property Value

Type: System.String
The unescaped absolute URL of the parent directory.

.NET Framework Security

See Also

Reference

Url Class

Microsoft.VisualStudio.Shell Namespace