ClientBuildManager.GenerateCode(String, String, IDictionary) 方法
定义
根据文件内容生成代码。Generates code from the contents of a file.
public:
System::String ^ GenerateCode(System::String ^ virtualPath, System::String ^ virtualFileString, [Runtime::InteropServices::Out] System::Collections::IDictionary ^ % linePragmasTable);
public string GenerateCode (string virtualPath, string virtualFileString, out System.Collections.IDictionary linePragmasTable);
member this.GenerateCode : string * string * IDictionary -> string
Public Function GenerateCode (virtualPath As String, virtualFileString As String, ByRef linePragmasTable As IDictionary) As String
参数
- virtualPath
- String
文件的虚拟路径。The virtual path to the file.
- virtualFileString
- String
文件的内容。The contents of the file.
- linePragmasTable
- IDictionary
此方法返回时,包含一个行杂注的字典。When this method returns, contains a dictionary of line pragmas.
返回
String,包含生成的代码。A String containing the generated code.
例外
virtualPath 为 null。virtualPath is null.