共用方式為


VersionControlExplorerExt.Workspace Property

Get the workspace currently being viewed in the Version Control Explorer

Namespace:  Microsoft.VisualStudio.TeamFoundation.VersionControl
Assembly:  Microsoft.VisualStudio.TeamFoundation.VersionControl (in Microsoft.VisualStudio.TeamFoundation.VersionControl.dll)

Syntax

'Declaration
Public ReadOnly Property Workspace As Workspace
public Workspace Workspace { get; }
public:
property Workspace^ Workspace {
    Workspace^ get ();
}
member Workspace : Workspace with get
function get Workspace () : Workspace

Property Value

Type: Microsoft.TeamFoundation.VersionControl.Client.Workspace
workspace or null

.NET Framework Security

See Also

Reference

VersionControlExplorerExt Class

Microsoft.VisualStudio.TeamFoundation.VersionControl Namespace