Share via


ContentReader.ReadSharedResource Generic Method

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

Syntax

'Declaration
Public Sub ReadSharedResource(Of T) ( _
         fixup As Action(Of T) _
)
public void ReadSharedResource<T> (
         Action<T> fixup
)
public:
generic<typename T>
void ReadSharedResource(
         Action<T> fixup
)

Type Parameters

  • T
    The type of the shared resource.

Parameters

  • fixup
    Type: Action<T>
    The fix-up action to perform.

Exceptions

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

Requirements

Namespace: Microsoft.Xna.Framework.Content

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

See Also

Reference

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

Platforms

Windows Phone