Share via


ContentReader.ReadSharedResource Generic Method

Reads a shared resource ID, and records it for subsequent fix-up.

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

Syntax

public void ReadSharedResource<T> (
         Action<T> fixup
)

Type Parameters

  • T
    The type of the shared resource.

Parameters

  • fixup
    The fix-up action to perform.

Exceptions

Exception type Condition
ArgumentNullException fixup is null.
ContentLoadException Error loading the resource.

See Also

Reference

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

Platforms

Xbox 360, Windows XP SP2, Windows Vista