Share via


ContentReader.AssetName Property

Gets the name of the asset currently being read by this ContentReader.

Namespace: Microsoft.Xna.Framework.Content
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public string AssetName { get; }

Property Value

Name of the asset currently being read by this ContentReader.

Remarks

AssetName can be useful to include in the exception message if a custom ContentTypeReader encounters an error.

See Also

Reference

ContentReader Class
ContentReader Members
Microsoft.Xna.Framework.Content Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista