Class ScriptVersion
Version for a script project.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Namespace: Loehnert.Lisrt.Scripting.Editor.VersionControl
Assembly: Loehnert.Lisrt.Scripting.dll
Syntax
public class ScriptVersion
Constructors
ScriptVersion(String, String, Version, DateTime, String)
Initializes a new instance of the ScriptVersion class.
Declaration
public ScriptVersion(string userName, string description, Version version, DateTime date, string checksum)
Parameters
Type | Name | Description |
---|---|---|
String | userName | Name of the changing user. |
String | description | Description for the version. |
System.Version | version | Version number. |
System.DateTime | date | Date when version was created. |
String | checksum | Checksum of the version. |
Fields
VersionXMLAttributeName
Gets the XAML attribute name for a version node.
Declaration
public const string VersionXMLAttributeName = "Version"
Field Value
Type | Description |
---|---|
String |
Properties
Checksum
Gets the checksum of this version.
Declaration
public string Checksum { get; }
Property Value
Type | Description |
---|---|
String |
Date
Gets the creation date.
Declaration
public DateTime Date { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
Description
Gets the description of this version.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
String |
UserName
Gets the creators name.
Declaration
public string UserName { get; }
Property Value
Type | Description |
---|---|
String |
Version
Gets the version.
Declaration
public Version Version { get; }
Property Value
Type | Description |
---|---|
System.Version |
Methods
CreateFromXElement(XElement)
Creates a script version from an XElement node.
Declaration
public static ScriptVersion CreateFromXElement(XElement node)
Parameters
Type | Name | Description |
---|---|---|
XElement | node | Node with version information. |
Returns
Type | Description |
---|---|
ScriptVersion | A new ScriptVersion. |
ToXElement()
Creates a new node as XElement from a script version.
Declaration
public XElement ToXElement()
Returns
Type | Description |
---|---|
XElement | A node as XElement. |