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

Mostra file Open project: Microsoft/VSSDK-Extensibility-Samples Class Usage Examples

Public Methods

Method 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

Method 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 method

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
return void

CheckinFile() public method

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

CheckoutFile() public method

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

GetFileStatus() public method

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

ReadStorageFile() public method

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

RenameFileInStorage() public method

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
return void

SccProviderStorage() public method

public SccProviderStorage ( string projectFile ) : System
projectFile string
return System