Table of Contents

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
PropertyChangedBase
Reference
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged
Extension Methods

Constructors

Reference(string)

Initializes a new instance of the Reference class.

public Reference(string name)

Parameters

name string

Name of the Reference with extension.

Properties

Icon

Gets the icon.

public Uri Icon { get; }

Property Value

Uri

Name

Gets the name of the referenced object without extension.

public string Name { get; }

Property Value

string

Parent

Gets or sets the parent item.

[DoNotTrack]
public ICompositeProjectItem Parent { get; set; }

Property Value

ICompositeProjectItem

Path

Gets the path to the referenced object.

public string Path { get; }

Property Value

string

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

data byte[]

byte[] representation of the object.

Exceptions

NotImplementedException

Always thrown.

ToBytes()

Retrieves a byte[] representation of the file reference path.

public byte[] ToBytes()

Returns

byte[]

Bytes representing the instance.