Class Reference
- Namespace
- Loehnert.Lisrt.Scripting.Project.References
- Assembly
- Loehnert.Lisrt.Scripting.dll
Class for a reference to an file system object.
public class Reference : PropertyChangedBase, INotifyPropertyChangedEx, IReference, IProjectItem, INotifyPropertyChanged, ICanBeDeleted, IIsPartOfFileSystem, IByteSerializable
- Inheritance
-
PropertyChangedBaseReference
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
- Extension Methods
Constructors
Reference(string)
Initializes a new instance of the Reference class.
public Reference(string name)
Parameters
name
stringName of the Reference with extension.
Properties
Icon
Gets the icon.
public Uri Icon { get; }
Property Value
Name
Gets the name of the referenced object without extension.
public string Name { get; }
Property Value
Parent
Gets or sets the parent item.
[DoNotTrack]
public ICompositeProjectItem Parent { get; set; }
Property Value
Path
Gets the path to the referenced object.
public string Path { get; }
Property Value
Methods
Delete()
Removes the item from the parent.
public void Delete()
FromBytes(byte[])
Populates an object from a byte[].
public void FromBytes(byte[] data)
Parameters
Exceptions
- NotImplementedException
Always thrown.
ToBytes()
Retrieves a byte[] representation of the file reference path.
public byte[] ToBytes()
Returns
- byte[]
Bytes representing the instance.