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
stringName of the changing user.
description
stringDescription for the version.
version
VersionVersion number.
date
DateTimeDate when version was created.
checksum
stringChecksum of the version.
Fields
VersionXMLAttributeName
Gets the XAML attribute name for a version node.
public const string VersionXMLAttributeName = "Version"
Field Value
Properties
Checksum
Gets the checksum of this version.
public string Checksum { get; }
Property Value
Date
Gets the creation date.
public DateTime Date { get; }
Property Value
Description
Gets the description of this version.
public string Description { get; }
Property Value
UserName
Gets the creators name.
public string UserName { get; }
Property Value
Version
Gets the version.
public Version Version { get; }
Property Value
Methods
CreateFromXElement(XElement)
Creates a script version from an XElement node.
public static ScriptVersion CreateFromXElement(XElement node)
Parameters
node
XElementNode with version information.
Returns
- ScriptVersion
A new ScriptVersion.
ToXElement()
Creates a new node as XElement from a script version.
public XElement ToXElement()