共用方式為


Texture2DContent.Validate Method

Note

This method is available only when developing for Windows.

Validates that the required contents of this texture are present, valid and match the capabilities of the device.

Syntax

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

Parameters

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

Exceptions

Exception type Condition
InvalidContentException The texture is not a valid one.

Requirements

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

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

See Also

Reference

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

Platforms

Windows 7, Windows Vista, Windows XP