Sdílet prostřednictvím


IVsSccManager2 Interface

Definition

Allows projects and hierarchies to register themselves with source control and obtain information on source control status.

public interface class IVsSccManager2
public interface class IVsSccManager2
__interface IVsSccManager2
[System.Runtime.InteropServices.Guid("53544C4D-B927-4320-B9DA-13D2CB3EA93B")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsSccManager2
[System.Runtime.InteropServices.Guid("53544C4D-B927-4320-B9DA-13D2CB3EA93B")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsSccManager2
[<System.Runtime.InteropServices.Guid("53544C4D-B927-4320-B9DA-13D2CB3EA93B")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsSccManager2 = interface
[<System.Runtime.InteropServices.Guid("53544C4D-B927-4320-B9DA-13D2CB3EA93B")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsSccManager2 = interface
Public Interface IVsSccManager2
Derived
Attributes

Notes to Implementers

This interface is implemented by both the source control management portion of the environment and source control packages (the environment forwards all calls to the source control package after making sure the package is loaded). It is a required interface.

Notes to Callers

This interface is called by projects to register with a source control package and thereby indicate that the project wants source control.

Methods

BrowseForProject(String, Int32)

Obsolete: returns E_NOTIMPL.

CancelAfterBrowseForProject()

Obsolete: returns E_NOTIMPL.

GetSccGlyph(Int32, String[], VsStateIcon[], UInt32[])

This method is called by projects to discover the source control glyphs to use on files and the files' source control status; this is the only way to get status.

GetSccGlyphFromStatus(UInt32, VsStateIcon[])

This function determines which glyph to display, given a combination of status flags.

IsInstalled(Int32)

This function determines whether the source control package is installed. Source control packages should always return S_OK and pbInstalled = nonzero.

RegisterSccProject(IVsSccProject2, String, String, String, String)

This method is called by projects that are under source control when they are first opened to register project settings.

UnregisterSccProject(IVsSccProject2)

Called by projects registered with the source control portion of the environment before they are closed.

Applies to