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

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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

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

Метод Описание
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

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

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

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
Результат void

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

Checkin a file to store by making the file on disk read only
public CheckinFile ( string filename ) : void
filename string
Результат void

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

Checkout a file from store by making the file on disk writable
public CheckoutFile ( string filename ) : void
filename string
Результат void

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

Returns a source control status inferred from the file's attributes on local disk
public GetFileStatus ( string filename ) : SourceControlStatus
filename string
Результат SourceControlStatus

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

Reads the list of "controlled" files in the current project.
public ReadStorageFile ( ) : void
Результат void

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

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
Результат void

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

public SccProviderStorage ( string projectFile ) : System
projectFile string
Результат System