C# Класс Microsoft.Samples.VisualStudio.SourceControlIntegration.SccProvider.SccProvider

Наследование: Microsoft.VisualStudio.Shell.Package, IOleCommandTarget, IVsPersistSolutionProps
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetNodeFiles ( IVsHierarchy hier, uint itemid ) : IList

Returns a list of source controllable files associated with the specified node

GetProjectFileName ( IVsSccProject2 pscp2Project ) : string

Returns the filename of the specified controllable project

GetProjectFiles ( IVsSccProject2 pscp2Project ) : IList

Gets the list of source controllable files in the specified project

GetProjectFiles ( IVsSccProject2 pscp2Project, uint startItemId ) : IList

Gets the list of source controllable files in the specified project

GetService ( Type serviceType ) : Object
GetSolutionFileName ( ) : string

Returns the filename of the solution

GetSolutionFoldersEnum ( ) : Hashtable

Returns a list of solution folders projects in the solution

InCommandLineMode ( ) : bool

Checks whether the provider is invoked in command line mode

IsSolutionFolderProject ( IVsHierarchy pHier ) : bool

Checks whether the specified project is a solution folder

LoadUserOptions ( [ pPersistence, [ grfLoadOpts ) : int
OnActiveStateChange ( ) : void
OnProjectLoadFailure ( [ pStubHierarchy, [ pszProjectName, [ pszProjectMk, [ pszKey ) : int
QuerySaveSolutionProps ( [ pHierarchy, [ pqsspSave ) : int
QueryStatus ( System.Guid &guidCmdGroup, uint cCmds, OLECMD prgCmds, System pCmdText ) : int

The shell call this function to know if a menu item should be visible and if it should be enabled/disabled. Note that this function will only be called when an instance of this editor is open.

ReadSolutionProps ( [ pHierarchy, [ pszProjectName, [ pszProjectMk, [ pszKey, [ fPreLoad, [ pPropBag ) : int
ReadUserOptions ( [ pOptionsStream, [ pszKey ) : int
RefreshNodesGlyphs ( IList selectedNodes ) : void

Refreshes the glyphs of the specified hierarchy nodes

SaveSolutionProps ( [ pHierarchy, [ pPersistence ) : int
SaveUserOptions ( [ pPersistence ) : int
SccProvider ( ) : System
WriteSolutionProps ( [ pHierarchy, [ pszKey, [ pPropBag ) : int
WriteUserOptions ( [ pOptionsStream, [ pszKey ) : int

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void
Initialize ( ) : void

Приватные методы

Метод Описание
DebugWalkingNode ( IVsHierarchy pHier, uint itemid ) : void
Exec_icmdAddToSourceControl ( object sender, EventArgs e ) : void
Exec_icmdCheckin ( object sender, EventArgs e ) : void
Exec_icmdCheckout ( object sender, EventArgs e ) : void
Exec_icmdToolWindowToolbarCommand ( object sender, EventArgs e ) : void
Exec_icmdUseSccOffline ( object sender, EventArgs e ) : void
Exec_icmdViewToolWindow ( object sender, EventArgs e ) : void
GetLoadedControllableProjectsEnum ( ) : Hashtable

Returns a list of controllable projects in the solution

GetNodeFiles ( IVsSccProject2 pscp2, uint itemid ) : IList

Returns a list of source controllable files associated with the specified node

GetProjectItems ( IVsHierarchy pHier ) : IList

Gets the list of ItemIDs that are nodes in the specified project

GetProjectItems ( IVsHierarchy pHier, uint startItemid ) : IList

Gets the list of ItemIDs that are nodes in the specified project, starting with the specified item

GetSelectedFilesInControlledProjects ( ) : IList

Returns a list of source controllable files in the selection (recursive)

GetSelectedFilesInControlledProjects ( IList &selectedNodes ) : IList

Returns a list of source controllable files in the selection (recursive)

GetSelectedHierarchies ( IList &sel, bool &solutionSelected ) : Hashtable

Gets the list of selected controllable project hierarchies

GetSelectedNodes ( ) : IList

Gets the list of directly selected VSITEMSELECTION objects

IsThereASolution ( ) : bool

Checks whether a solution exist

QueryStatus_icmdAddToSourceControl ( ) : OLECMDF
QueryStatus_icmdCheckin ( ) : OLECMDF
QueryStatus_icmdCheckout ( ) : OLECMDF
QueryStatus_icmdUseSccOffline ( ) : OLECMDF

Описание методов

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

GetNodeFiles() публичный Метод

Returns a list of source controllable files associated with the specified node
public GetNodeFiles ( IVsHierarchy hier, uint itemid ) : IList
hier IVsHierarchy
itemid uint
Результат IList

GetProjectFileName() публичный Метод

Returns the filename of the specified controllable project
public GetProjectFileName ( IVsSccProject2 pscp2Project ) : string
pscp2Project IVsSccProject2
Результат string

GetProjectFiles() публичный Метод

Gets the list of source controllable files in the specified project
public GetProjectFiles ( IVsSccProject2 pscp2Project ) : IList
pscp2Project IVsSccProject2
Результат IList

GetProjectFiles() публичный Метод

Gets the list of source controllable files in the specified project
public GetProjectFiles ( IVsSccProject2 pscp2Project, uint startItemId ) : IList
pscp2Project IVsSccProject2
startItemId uint
Результат IList

GetService() публичный Метод

public GetService ( Type serviceType ) : Object
serviceType System.Type
Результат Object

GetSolutionFileName() публичный Метод

Returns the filename of the solution
public GetSolutionFileName ( ) : string
Результат string

GetSolutionFoldersEnum() публичный Метод

Returns a list of solution folders projects in the solution
public GetSolutionFoldersEnum ( ) : Hashtable
Результат System.Collections.Hashtable

InCommandLineMode() публичный Метод

Checks whether the provider is invoked in command line mode
public InCommandLineMode ( ) : bool
Результат bool

Initialize() защищенный Метод

protected Initialize ( ) : void
Результат void

IsSolutionFolderProject() публичный Метод

Checks whether the specified project is a solution folder
public IsSolutionFolderProject ( IVsHierarchy pHier ) : bool
pHier IVsHierarchy
Результат bool

LoadUserOptions() публичный Метод

public LoadUserOptions ( [ pPersistence, [ grfLoadOpts ) : int
pPersistence [
grfLoadOpts [
Результат int

OnActiveStateChange() публичный Метод

public OnActiveStateChange ( ) : void
Результат void

OnProjectLoadFailure() публичный Метод

public OnProjectLoadFailure ( [ pStubHierarchy, [ pszProjectName, [ pszProjectMk, [ pszKey ) : int
pStubHierarchy [
pszProjectName [
pszProjectMk [
pszKey [
Результат int

QuerySaveSolutionProps() публичный Метод

public QuerySaveSolutionProps ( [ pHierarchy, [ pqsspSave ) : int
pHierarchy [
pqsspSave [
Результат int

QueryStatus() публичный Метод

The shell call this function to know if a menu item should be visible and if it should be enabled/disabled. Note that this function will only be called when an instance of this editor is open.
public QueryStatus ( System.Guid &guidCmdGroup, uint cCmds, OLECMD prgCmds, System pCmdText ) : int
guidCmdGroup System.Guid Guid describing which set of command the current command(s) belong to
cCmds uint Number of command which status are being asked for
prgCmds OLECMD Information for each command
pCmdText System Used to dynamically change the command text
Результат int

ReadSolutionProps() публичный Метод

public ReadSolutionProps ( [ pHierarchy, [ pszProjectName, [ pszProjectMk, [ pszKey, [ fPreLoad, [ pPropBag ) : int
pHierarchy [
pszProjectName [
pszProjectMk [
pszKey [
fPreLoad [
pPropBag [
Результат int

ReadUserOptions() публичный Метод

public ReadUserOptions ( [ pOptionsStream, [ pszKey ) : int
pOptionsStream [
pszKey [
Результат int

RefreshNodesGlyphs() публичный Метод

Refreshes the glyphs of the specified hierarchy nodes
public RefreshNodesGlyphs ( IList selectedNodes ) : void
selectedNodes IList
Результат void

SaveSolutionProps() публичный Метод

public SaveSolutionProps ( [ pHierarchy, [ pPersistence ) : int
pHierarchy [
pPersistence [
Результат int

SaveUserOptions() публичный Метод

public SaveUserOptions ( [ pPersistence ) : int
pPersistence [
Результат int

SccProvider() публичный Метод

public SccProvider ( ) : System
Результат System

WriteSolutionProps() публичный Метод

public WriteSolutionProps ( [ pHierarchy, [ pszKey, [ pPropBag ) : int
pHierarchy [
pszKey [
pPropBag [
Результат int

WriteUserOptions() публичный Метод

public WriteUserOptions ( [ pOptionsStream, [ pszKey ) : int
pOptionsStream [
pszKey [
Результат int