Compartilhar via


IVsSccAddWebProjectFromSourceControl Interface

This interface adds a Web-based project to the current solution from source control.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
<GuidAttribute("53544C4D-724A-46C8-8D01-6D4518CA118C")> _
<InterfaceTypeAttribute()> _
Public Interface IVsSccAddWebProjectFromSourceControl
[GuidAttribute("53544C4D-724A-46C8-8D01-6D4518CA118C")]
[InterfaceTypeAttribute()]
public interface IVsSccAddWebProjectFromSourceControl
[GuidAttribute(L"53544C4D-724A-46C8-8D01-6D4518CA118C")]
[InterfaceTypeAttribute()]
public interface class IVsSccAddWebProjectFromSourceControl
[<GuidAttribute("53544C4D-724A-46C8-8D01-6D4518CA118C")>]
[<InterfaceTypeAttribute()>]
type IVsSccAddWebProjectFromSourceControl =  interface end
public interface IVsSccAddWebProjectFromSourceControl

The IVsSccAddWebProjectFromSourceControl type exposes the following members.

Methods

  Name Description
Public method AddWebProjectFromSourceControl Adds the specified Web-based project to the current solution, storing it at the specified location.
Public method BrowseForServerLocation Presents a dialog box to the user to browse for a source control server location.
Public method IsAddWebProjectSupported Determines whether the addition of a Web-based project to the current solution directly from source control is supported.

Top

Remarks

Visual Studio always supports this interface so that anyone querying the SVsSccManager service for this interface is guaranteed to get it. Visual Studio then asks the current source control package for the same interface and, if it can be obtained, forwards all calls to the source control package's version of the interface.

If Visual Studio cannot get this interface from the source control package, then Visual Studio's version of IsAddWebProjectSupported returns false, indicating that adding a Web-based project from source control is not supported.

Notes to Implementers

This interface is implemented by a source control package if it supports the ability to add a Web-based project to a solution directly from source control. If this interface is not implemented, the user must manually add the Web-based project to the solution.

Notes to Callers

The environment calls this interface to determine if the Add Web Project from Source Control dialog box will be displayed. If this interface is implemented (as determined by a call to the IsAddWebProjectSupported method) and the user clicks the Browse button in the dialog box, the environment calls the BrowseForServerLocation method to obtain information about where to browse for a Web-based project. With this information, the environment presents another dialog box (supplied by the environment) to select the Web-based project to add and the location to store it in on the local system. Then the environment calls the AddWebProjectFromSourceControl method to add the selected Web-based project to the current solution.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace