C# Class Microsoft.Samples.VisualStudio.SourceControlIntegration.SccProvider.SccProviderStorage

Afficher le fichier Open project: Microsoft/VSSDK-Extensibility-Samples Class Usage Examples

Méthodes publiques

Méthode Description
AddFilesToStorage ( IList files ) : void

Adds files to source control by adding them to the list of "controlled" files in the current project and changing their attributes to reflect the "checked in" status.

CheckinFile ( string filename ) : void

Checkin a file to store by making the file on disk read only

CheckoutFile ( string filename ) : void

Checkout a file from store by making the file on disk writable

GetFileStatus ( string filename ) : SourceControlStatus

Returns a source control status inferred from the file's attributes on local disk

ReadStorageFile ( ) : void

Reads the list of "controlled" files in the current project.

RenameFileInStorage ( string strOldName, string strNewName ) : void

Renames a "controlled" file. If the project file is being renamed, rename the whole storage file

SccProviderStorage ( string projectFile ) : System

Private Methods

Méthode Description
WriteStorageFile ( ) : void

Saves the list of the "controlled" files in a file with the same name as the project but with an extra ".storage" extension

Method Details

AddFilesToStorage() public méthode

Adds files to source control by adding them to the list of "controlled" files in the current project and changing their attributes to reflect the "checked in" status.
public AddFilesToStorage ( IList files ) : void
files IList
Résultat void

CheckinFile() public méthode

Checkin a file to store by making the file on disk read only
public CheckinFile ( string filename ) : void
filename string
Résultat void

CheckoutFile() public méthode

Checkout a file from store by making the file on disk writable
public CheckoutFile ( string filename ) : void
filename string
Résultat void

GetFileStatus() public méthode

Returns a source control status inferred from the file's attributes on local disk
public GetFileStatus ( string filename ) : SourceControlStatus
filename string
Résultat SourceControlStatus

ReadStorageFile() public méthode

Reads the list of "controlled" files in the current project.
public ReadStorageFile ( ) : void
Résultat void

RenameFileInStorage() public méthode

Renames a "controlled" file. If the project file is being renamed, rename the whole storage file
public RenameFileInStorage ( string strOldName, string strNewName ) : void
strOldName string
strNewName string
Résultat void

SccProviderStorage() public méthode

public SccProviderStorage ( string projectFile ) : System
projectFile string
Résultat System