Table of Contents

Class ExternalReference<T>

Namespace
Microsoft.Xna.Framework.Content.Pipeline
Assembly
MonoGame.Framework.Content.Pipeline.dll

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

filename string

The 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

filename string

The name of the referenced file.

relativeToContent ContentIdentity

The 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; }

Property Value

string