Partilhar via


PipelineComponentScanner.Update Method (Generic IEnumerable)

Note

This method is available only when developing for Windows.

Updates the scanner object with the latest available assembly states.

Syntax

'Declaration
Public Function Update ( _
         pipelineAssemblies As IEnumerable(Of String) _
) As Boolean 
public bool Update (
         IEnumerable<string> pipelineAssemblies
)
public:
bool Update(
         IEnumerable<String> pipelineAssemblies
)

Parameters

  • pipelineAssemblies
    Type: IEnumerable<String>
    Enumerated list of available assemblies.

Return Value

Type: Boolean
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.

Requirements

Namespace: Microsoft.Xna.Framework.Content.Pipeline

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

See Also

Reference

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

Platforms

Windows 7, Windows Vista, Windows XP