DataServiceBuildProvider 类
定义
基于数据服务返回的元数据为 WCF Data Services 客户端应用程序生成 C# 或 Visual Basic 代码。Generates C# or Visual Basic code for a WCF Data Services client application based on the metadata returned by the data service.
public ref class DataServiceBuildProvider : System::Web::Compilation::BuildProvider
[System.Security.SecurityCritical]
public class DataServiceBuildProvider : System.Web.Compilation.BuildProvider
[<System.Security.SecurityCritical>]
type DataServiceBuildProvider = class
inherit BuildProvider
Public Class DataServiceBuildProvider
Inherits BuildProvider
- 继承
- 属性
注解
此类仅供 ASP.NET 编译器使用。This class is intended to be used only by the ASP.NET compiler.
构造函数
| DataServiceBuildProvider() |
创建 DataServiceBuildProvider 类的新实例。Creates a new instance of the DataServiceBuildProvider class. |
属性
| CodeCompilerType |
表示生成提供程序为自定义文件类型生成源代码所使用的编译器类型。Represents the compiler type used by a build provider to generate source code for a custom file type. (继承自 BuildProvider) |
| ReferencedAssemblies |
表示要用生成提供程序生成的源代码进行编译的程序集。Represents the assemblies to compile with the source generated by the build provider. (继承自 BuildProvider) |
| VirtualPath |
表示要由此生成提供程序实现生成的文件。Represents the file to be built by this build provider implementation. (继承自 BuildProvider) |
| VirtualPathDependencies |
表示在生成提供程序生成代码之前必须生成的虚拟路径的集合。Represents a collection of virtual paths that must be built before the build provider generates code. (继承自 BuildProvider) |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GenerateCode(AssemblyBuilder) |
基于数据服务返回的元数据为 WCF Data Services 客户端应用程序生成 C# 或 Visual Basic 代码。Generates C# or Visual Basic code for a WCF Data Services client application based on the metadata returned by the data service. |
| GetCodeCompileUnit(IDictionary) |
表示生成的 CodeDOM 关系图的容器。Represents the container for the generated CodeDOM graph. (继承自 BuildProvider) |
| GetCustomString(CompilerResults) |
生成要在编译后的程序集中保留的字符串。Generates a string to be persisted in the compiled assembly. (继承自 BuildProvider) |
| GetDefaultCompilerType() |
返回应用程序中默认语言的编译器设置。Returns the compiler settings for the default language in the application. (继承自 BuildProvider) |
| GetDefaultCompilerTypeForLanguage(String) |
根据指定的语言返回生成提供程序的编译器设置。Returns the compiler settings for the build provider based on the specified language. (继承自 BuildProvider) |
| GetGeneratedType(CompilerResults) |
返回生成提供程序从虚拟路径生成的类型。Returns a type generated by the build provider from the virtual path. (继承自 BuildProvider) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetResultFlags(CompilerResults) |
返回指示生成虚拟路径时所需操作的值。Returns a value indicating actions required when a virtual path is built. (继承自 BuildProvider) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| OpenReader() |
打开文本读取器以从当前生成提供程序对象的虚拟路径读取。Opens a text reader for reading from the virtual path of the current build provider object. (继承自 BuildProvider) |
| OpenReader(String) |
打开文本读取器以从指定的虚拟路径读取。Opens a text reader for reading from a specified virtual path. (继承自 BuildProvider) |
| OpenStream() |
打开流以读取当前生成提供程序对象的虚拟路径。Opens a stream for reading the virtual path of the current build provider object. (继承自 BuildProvider) |
| OpenStream(String) |
打开流以从指定的虚拟路径读取。Opens a stream for reading from a specified virtual path. (继承自 BuildProvider) |
| ProcessCompileErrors(CompilerResults) |
当在派生类中被重写时,能够查看编译器错误消息,以便将其修改为提供更多信息。When overridden in a derived class, enables you to review compiler error messages so that you can modify them to provide more information. (继承自 BuildProvider) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |