Dela via


ContentImporterContext.AddDependency Method

Note

This method is available only when developing for Windows.

Adds a dependency to the specified file. This causes a rebuild of the file, when modified, on subsequent incremental builds.

Syntax

'Declaration
Public MustOverride Sub AddDependency ( _
         filename As String _
)
public abstract void AddDependency (
         string filename
)
public:
void AddDependency(
         String filename
) abstract

Parameters

  • filename
    Type: String
    Name of an asset file.

Remarks

Do not call this method for the main file passed to the Import method. It is only required for additional files needing to be read by the importer.

Requirements

Namespace: Microsoft.Xna.Framework.Content.Pipeline

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

See Also

Reference

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

Platforms

Windows 7, Windows Vista, Windows XP