Compile Method of the Compiler Object

Compile Method of the Compiler Object

Compiles the SDM document. Calling this method requires that the Compiler.SourceFile property be set. Other properties are optional and have appropriate defaults.

  [C#]
public Boolean Compile(
  out Boolean successfulCompile,
  out Boolean successfulSimulation,
  out Boolean savedTargetFile
);

FakePre-b0631cda8b7c400896ae70a42fe660f8-4ed8ee0aae4b4628bc5d04cfa6d52f84

Parameters

  • successfulCompile
    [out]

    true to show if any error occurred during the first stage of compilation; otherwise, false. The first stage of compilation (the definition space) is where definitions, members, and settings are validated.

  • successfulSimulation
    [out]

    true to show if any error occurred during the second stage of compilation; otherwise, false. The second stage of compilation (the instance space) is where the flow and constraints are evaluated.

  • savedTargetFile
    [out]

    true to show if the target file was actually written; otherwise, false.

Return Value

true if any errors occurred during the compilation; otherwise, false.

Requirements

Namespace

Defined in Microsoft.SystemDefinitionModel.Tools.

Assembly

Requires SdmCompile (in SdmCompile.dll).

.NET Framework

Requires .NET Framework 2.0.

See Also

Microsoft.SystemDefinitionModel.Tools
Compiler
Compiler.SourceFile

Send comments about this topic to Microsoft

Build date: 10/2/2007