C# Класс SourceControl.ChangeFile

The description of the changed text file.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Action SourceControlAction
Data string
IsText bool
LastModifiedTime DateTime?
LocalFileName string
OriginalServerFileName string
Revision int
ServerFileName string

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

Метод Описание
ChangeFile ( string serverFileName, SourceControlAction action, int revision, bool isText ) : System

Trivial constructor.

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

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

Trivial constructor.
public ChangeFile ( string serverFileName, SourceControlAction action, int revision, bool isText ) : System
serverFileName string The file name inside the source control.
action SourceControlAction The action (ADD, EDIT, DELETE).
revision int The revision of the checked out file (0 if add).
isText bool True if this is a text file.
Результат System

Описание свойств

Action публичное свойство

The action that is taken (ADD, EDIT, DELETE).
public SourceControlAction Action
Результат SourceControlAction

Data публичное свойство

If ADD, the entire file; if EDIT - the diff; if DELETE - null. If !IsText, also null.
public string Data
Результат string

IsText публичное свойство

Whether the file is text.
public bool IsText
Результат bool

LastModifiedTime публичное свойство

When the file was last modified, if this is not a deletion, in UTC.
public DateTime? LastModifiedTime
Результат DateTime?

LocalFileName публичное свойство

The name of the file, local.
public string LocalFileName
Результат string

OriginalServerFileName публичное свойство

The original name of the file, if changed. If not null, should be used to get the base line.
public string OriginalServerFileName
Результат string

Revision публичное свойство

The checked-out revision.
public int Revision
Результат int

ServerFileName публичное свойство

The name of the file, in source control semantics.
public string ServerFileName
Результат string