Class ExternalReference<T>
Specifies external references to a data file for the content item.
While the object model is instantiated, reference file names are absolute. When the file containing the external reference is serialized to disk, file names are relative to the file. This allows movement of the content tree to a different location without breaking internal links.
public sealed class ExternalReference<T> : ContentItem
Type Parameters
T
- Inheritance
-
ExternalReference<T>
- Inherited Members
Constructors
ExternalReference()
Initializes a new instance of ExternalReference.
public ExternalReference()
ExternalReference(string)
Initializes a new instance of ExternalReference.
public ExternalReference(string filename)
Parameters
filenamestringThe name of the referenced file.
ExternalReference(string, ContentIdentity)
Initializes a new instance of ExternalReference, specifying the file path relative to another content item.
public ExternalReference(string filename, ContentIdentity relativeToContent)
Parameters
filenamestringThe name of the referenced file.
relativeToContentContentIdentityThe content that the path specified in filename is relative to.
Properties
Filename
Gets and sets the file name of an ExternalReference.
public string Filename { get; set; }