Partilhar via


PipelineComponentScanner.Update Method

Updates the scanner object with the latest available assembly states.

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

Syntax

public bool Update (
         IEnumerable<string> pipelineAssemblies
)

Parameters

  • pipelineAssemblies
    Enumerated list of available assemblies.

Return Value

true if an actual scan was required, indicating the collection contents may have changed. false if no assembly changes were detected since the previous call.

Remarks

After Update is called, the Importer* and Processor* properties contain any new information. If any errors occurred during the scan, they are stored in the Errors property.

Since Update uses assembly file time stamps, trivial reject situations (where nothing has changed) are detected. Therefore, Update can be called frequently.

See Also

Reference

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

Platforms

Windows XP SP2, Windows Vista