ClientBuildManager.GenerateCodeCompileUnit ClientBuildManager.GenerateCodeCompileUnit ClientBuildManager.GenerateCodeCompileUnit 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) GenerateCodeCompileUnit(String, Type, CompilerParameters, IDictionary) GenerateCodeCompileUnit(String, Type, CompilerParameters, IDictionary) 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) GenerateCodeCompileUnit(String, String, Type, CompilerParameters, IDictionary) GenerateCodeCompileUnit(String, String, Type, CompilerParameters, IDictionary) 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) GenerateCodeCompileUnit(String, Type, CompilerParameters, IDictionary) GenerateCodeCompileUnit(String, Type, CompilerParameters, IDictionary) 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 *  *  *  -> 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 String String String

The virtual path to the file.

codeDomProviderType
Type Type Type Type

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

compilerParameters
CompilerParameters CompilerParameters CompilerParameters CompilerParameters

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

linePragmasTable
IDictionary IDictionary IDictionary IDictionary

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

Returns

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

GenerateCodeCompileUnit(String, String, Type, CompilerParameters, IDictionary) GenerateCodeCompileUnit(String, String, Type, CompilerParameters, IDictionary) GenerateCodeCompileUnit(String, String, Type, CompilerParameters, IDictionary) 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 *  *  *  -> 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 String String String

The virtual path to the file.

virtualFileString
String String String String

The contents of the file represented by the virtualPath parameter.

codeDomProviderType
Type Type Type Type

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

compilerParameters
CompilerParameters CompilerParameters CompilerParameters CompilerParameters

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

linePragmasTable
IDictionary IDictionary IDictionary IDictionary

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

Returns

Exceptions

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