TextureContent.Validate Method

Note

This method is available only when developing for Windows.

Verifies that all contents of this texture are present, correct and match the capabilities of the device.

Syntax

'Declaration
Public MustOverride Sub Validate ( _
         targetProfile As Nullable(Of GraphicsProfile) _
)
public abstract void Validate (
         Nullable<GraphicsProfile> targetProfile
)
public:
void Validate(
         Nullable<GraphicsProfile> targetProfile
) abstract

Parameters

  • targetProfile
    Type: Nullable<GraphicsProfile>
    The profile identifier that defines the capabilities of the device.

Remarks

If texture verification fails, InvalidContentException is thrown.

Requirements

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics

Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

See Also

Reference

TextureContent Class
TextureContent Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows 7, Windows Vista, Windows XP