ContentProcessorContext Class (Microsoft.Xna.Framework.Content.Pipeline)

Provides access to custom processor parameters, methods for converting member data, and triggering nested builds.
System.Object
   Microsoft.Xna.Framework.Content.Pipeline.ContentProcessorContext
      MonoGame.Framework.Content.Pipeline.Builder.PipelineProcessorContext

Namespace: Microsoft.Xna.Framework.Content.Pipeline
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public abstract class ContentProcessorContext

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The ContentProcessorContext type exposes the following members.

  Platforms Name Description
ContentProcessorContext Initializes a new instance of ContentProcessorContext. 
Top
  Platforms Name Description
BuildConfiguration Gets the name of the current content build configuration. 
IntermediateDirectory Gets the path of the directory that will contain any intermediate files generated by the content processor. 
Logger Gets the logger interface used for status messages or warnings. 
OutputDirectory Gets the output path of the content processor. 
OutputFilename Gets the output file name of the content processor. 
Parameters Gets the collection of parameters used by the content processor. 
SourceIdentity Gets the ContentIdentity representing the source asset imported. 
TargetPlatform Gets the current content build target platform. 
TargetProfile Gets the current content build target profile. 
Top
  Platforms Name Description
AddDependency Adds a dependency to the specified file. This causes a rebuild of the file, when modified, on subsequent incremental builds. 
AddOutputFile Add a file name to the list of related output files maintained by the build item. This allows tracking build items that build multiple output files. 
BuildAndLoadAsset<TInput,TOutput>(ExternalReference<TInput>, string) Initiates a nested build of the specified asset and then loads the result into memory. 
BuildAndLoadAsset<TInput,TOutput>(ExternalReference<TInput>, string, OpaqueDataDictionary, string) Initiates a nested build of the specified asset and then loads the result into memory. 
BuildAsset<TInput,TOutput>(ExternalReference<TInput>, string) Initiates a nested build of an additional asset. 
BuildAsset<TInput,TOutput>(ExternalReference<TInput>, string, OpaqueDataDictionary, string, string) Initiates a nested build of an additional asset. 
Convert<TInput,TOutput>(TInput, string, OpaqueDataDictionary) Converts a content item object using the specified content processor. 
Convert<TInput,TOutput>(TInput, string) Converts a content item object using the specified content processor. 
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop