InvalidContentException Constructor (String, ContentIdentity)

Note

This constructor is available only when developing for Windows.

Initializes a new instance of the InvalidContentException class with the specified error message and the identity of the content throwing the exception.

Syntax

'Declaration
Public Sub New ( _
         message As String, _
         contentIdentity As ContentIdentity _
)
public InvalidContentException (
         string message,
         ContentIdentity contentIdentity
)
public:
InvalidContentException(
         String message,
         ContentIdentity contentIdentity
)

Parameters

  • message
    Type: String
    A message that describes the error.
  • contentIdentity
    Type: ContentIdentity
    Information about the content item that caused this error, including the file name. In some cases, a location within the file (of the problem) is specified.

Requirements

Namespace: Microsoft.Xna.Framework.Content.Pipeline

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

See Also

Reference

InvalidContentException Class
InvalidContentException Members
Microsoft.Xna.Framework.Content.Pipeline Namespace

Platforms

Windows 7, Windows Vista, Windows XP