Table of Contents

Class ContentIdentity

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

Provides properties describing the origin of the game asset, such as the original source file and creation tool. This information is used for error reporting, and by processors that need to determine from what directory the asset was originally loaded.

[Serializable]
public class ContentIdentity
Inheritance
ContentIdentity
Inherited Members

Constructors

ContentIdentity()

Initializes a new instance of ContentIdentity.

public ContentIdentity()

ContentIdentity(string)

Initializes a new instance of ContentIdentity with the specified values.

public ContentIdentity(string sourceFilename)

Parameters

sourceFilename string

The absolute path to the file name of the asset source.

ContentIdentity(string, string)

Initializes a new instance of ContentIdentity with the specified values.

public ContentIdentity(string sourceFilename, string sourceTool)

Parameters

sourceFilename string

The absolute path to the file name of the asset source.

sourceTool string

The name of the digital content creation (DCC) tool that created the asset.

ContentIdentity(string, string, string)

Initializes a new instance of ContentIdentity with the specified values.

public ContentIdentity(string sourceFilename, string sourceTool, string fragmentIdentifier)

Parameters

sourceFilename string

The absolute path to the file name of the asset source.

sourceTool string

The name of the digital content creation (DCC) tool that created the asset.

fragmentIdentifier string

Specific location of the content item within the larger source file. For example, this could be a line number in the file.

Properties

FragmentIdentifier

Gets or sets the specific location of the content item within the larger source file.

public string FragmentIdentifier { get; set; }

Property Value

string

SourceFilename

Gets or sets the file name of the asset source.

public string SourceFilename { get; set; }

Property Value

string

SourceTool

Gets or sets the creation tool of the asset.

public string SourceTool { get; set; }

Property Value

string