แก้ไข

แชร์ผ่าน


ClientBuildManager.GenerateCodeCompileUnit Method

Definition

Returns the codeDOM tree, compiler type, and compiler parameters for a file represented by a virtual path.

Overloads

GenerateCodeCompileUnit(String, Type, CompilerParameters, IDictionary)

Returns the codeDOM tree, compiler type, and compiler parameters for a file represented by a virtual path.

GenerateCodeCompileUnit(String, String, Type, CompilerParameters, IDictionary)

Returns the contents, codeDOM tree, compiler type, and compiler parameters for a file represented by a virtual path.

GenerateCodeCompileUnit(String, Type, CompilerParameters, IDictionary)

Returns the codeDOM tree, compiler type, and compiler parameters for a file represented by a virtual path.

public:
 System::CodeDom::CodeCompileUnit ^ GenerateCodeCompileUnit(System::String ^ virtualPath, [Runtime::InteropServices::Out] Type ^ % codeDomProviderType, [Runtime::InteropServices::Out] System::CodeDom::Compiler::CompilerParameters ^ % compilerParameters, [Runtime::InteropServices::Out] System::Collections::IDictionary ^ % linePragmasTable);
public System.CodeDom.CodeCompileUnit GenerateCodeCompileUnit (string virtualPath, out Type codeDomProviderType, out System.CodeDom.Compiler.CompilerParameters compilerParameters, out System.Collections.IDictionary linePragmasTable);
member this.GenerateCodeCompileUnit : string * Type * CompilerParameters * IDictionary -> System.CodeDom.CodeCompileUnit
Public Function GenerateCodeCompileUnit (virtualPath As String, ByRef codeDomProviderType As Type, ByRef compilerParameters As CompilerParameters, ByRef linePragmasTable As IDictionary) As CodeCompileUnit

Parameters

virtualPath
String

The virtual path to the file.

codeDomProviderType
Type

When this method returns, contains the codeDOM provider type used for code generation and compilation.

compilerParameters
CompilerParameters

When this method returns, contains the properties that define how the file will be compiled.

linePragmasTable
IDictionary

When this method returns, contains a dictionary of line pragmas.

Returns

A CodeCompileUnit for the given file.

Remarks

The GenerateCodeCompileUnit method retrieves information needed to compile a file. In addition to a CodeCompileUnit object as a return value, it returns three out parameters. The codeDomProviderType parameter returns the provider type for generating and compiling the file. The compilerParameters parameter contains properties that determine compilation behavior. The linePragmasTable parameter contains a dictionary of line pragmas.

See also

Applies to

GenerateCodeCompileUnit(String, String, Type, CompilerParameters, IDictionary)

Returns the contents, codeDOM tree, compiler type, and compiler parameters for a file represented by a virtual path.

public:
 System::CodeDom::CodeCompileUnit ^ GenerateCodeCompileUnit(System::String ^ virtualPath, System::String ^ virtualFileString, [Runtime::InteropServices::Out] Type ^ % codeDomProviderType, [Runtime::InteropServices::Out] System::CodeDom::Compiler::CompilerParameters ^ % compilerParameters, [Runtime::InteropServices::Out] System::Collections::IDictionary ^ % linePragmasTable);
public System.CodeDom.CodeCompileUnit GenerateCodeCompileUnit (string virtualPath, string virtualFileString, out Type codeDomProviderType, out System.CodeDom.Compiler.CompilerParameters compilerParameters, out System.Collections.IDictionary linePragmasTable);
member this.GenerateCodeCompileUnit : string * string * Type * CompilerParameters * IDictionary -> System.CodeDom.CodeCompileUnit
Public Function GenerateCodeCompileUnit (virtualPath As String, virtualFileString As String, ByRef codeDomProviderType As Type, ByRef compilerParameters As CompilerParameters, ByRef linePragmasTable As IDictionary) As CodeCompileUnit

Parameters

virtualPath
String

The virtual path to the file.

virtualFileString
String

The contents of the file represented by the virtualPath parameter.

codeDomProviderType
Type

When this method returns, contains the codeDOM provider type used for code generation and compilation.

compilerParameters
CompilerParameters

When this method returns, contains the properties that define how the file represented by the virtualPath parameter will be compiled.

linePragmasTable
IDictionary

When this method returns, contains a dictionary of line pragmas.

Returns

A CodeCompileUnit for the given file.

Exceptions

virtualPath is null.

Remarks

The GenerateCodeCompileUnit method retrieves information needed to compile a file. In addition to a CodeCompileUnit object as a return value, it returns three out parameters. The codeDomProviderType parameter returns the provider type for generating and compiling the file. The compilerParameters parameter contains properties that determine compilation behavior. The linePragmasTable parameter contains a dictionary of line pragmas.

See also

Applies to