संपादित करें

इसके माध्यम से साझा किया गया


ClientBuildManager.GetCodeDirectoryInformation Method

Definition

Gets information about the compiler type, compiler parameters, and the directory in which to store code files generated from non-code files such as .wsdl files.

public:
 void GetCodeDirectoryInformation(System::String ^ virtualCodeDir, [Runtime::InteropServices::Out] Type ^ % codeDomProviderType, [Runtime::InteropServices::Out] System::CodeDom::Compiler::CompilerParameters ^ % compilerParameters, [Runtime::InteropServices::Out] System::String ^ % generatedFilesDir);
public void GetCodeDirectoryInformation (string virtualCodeDir, out Type codeDomProviderType, out System.CodeDom.Compiler.CompilerParameters compilerParameters, out string generatedFilesDir);
member this.GetCodeDirectoryInformation : string * Type * CompilerParameters * string -> unit
Public Sub GetCodeDirectoryInformation (virtualCodeDir As String, ByRef codeDomProviderType As Type, ByRef compilerParameters As CompilerParameters, ByRef generatedFilesDir As String)

Parameters

virtualCodeDir
String

The directory about which to retrieve information.

codeDomProviderType
Type

When this method returns, contains the 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.

generatedFilesDir
String

When this method returns, contains the directory for files generated from non-code files.

Exceptions

virtualCodeDir is null.

Remarks

The GetCodeDirectoryInformation method retrieves information needed to build a code directory. It returns this information through three out parameters. The codeDomProviderType parameter returns the provider type for generating and compiling the files in the code directory. The compilerParameters parameter contains properties that determine compilation behavior. The generatedFilesDir parameter stores the directory path containing all the code files generated from non-code files in the code directory, such as .wsdl files.

Applies to

See also