Table of Contents

Class ScriptVersion

Namespace
Loehnert.Lisrt.Scripting.Editor.VersionControl
Assembly
Loehnert.Lisrt.Scripting.dll

Version for a script project.

public class ScriptVersion
Inheritance
ScriptVersion
Inherited Members

Constructors

ScriptVersion(string, string, Version, DateTime, string)

Initializes a new instance of the ScriptVersion class.

public ScriptVersion(string userName, string description, Version version, DateTime date, string checksum)

Parameters

userName string

Name of the changing user.

description string

Description for the version.

version Version

Version number.

date DateTime

Date when version was created.

checksum string

Checksum of the version.

Fields

VersionXMLAttributeName

Gets the XAML attribute name for a version node.

public const string VersionXMLAttributeName = "Version"

Field Value

string

Properties

Checksum

Gets the checksum of this version.

public string Checksum { get; }

Property Value

string

Date

Gets the creation date.

public DateTime Date { get; }

Property Value

DateTime

Description

Gets the description of this version.

public string Description { get; }

Property Value

string

UserName

Gets the creators name.

public string UserName { get; }

Property Value

string

Version

Gets the version.

public Version Version { get; }

Property Value

Version

Methods

CreateFromXElement(XElement)

Creates a script version from an XElement node.

public static ScriptVersion CreateFromXElement(XElement node)

Parameters

node XElement

Node with version information.

Returns

ScriptVersion

A new ScriptVersion.

ToXElement()

Creates a new node as XElement from a script version.

public XElement ToXElement()

Returns

XElement

A node as XElement.