WebScriptEndpoint 类
定义
带有自动添加 WebHttpBinding 行为的固定 WebScriptEnablingBehavior 绑定的标准终结点。A standard endpoint with a fixed WebHttpBinding binding that automatically adds the WebScriptEnablingBehavior behavior.
public ref class WebScriptEndpoint : System::ServiceModel::Description::WebServiceEndpoint
public class WebScriptEndpoint : System.ServiceModel.Description.WebServiceEndpoint
type WebScriptEndpoint = class
inherit WebServiceEndpoint
Public Class WebScriptEndpoint
Inherits WebServiceEndpoint
- 继承
注解
编写从 ASP.NET AJAX 应用程序调用的 WCF 服务时,请使用此终结点。Use this endpoint when you are writing a WCF service that is called from an ASP.NET AJAX application.
构造函数
| WebScriptEndpoint(ContractDescription) |
使用指定的 WebScriptEndpoint 初始化 ContractDescription 类的新实例。Initializes a new instance of the WebScriptEndpoint class with the specified ContractDescription. |
| WebScriptEndpoint(ContractDescription, EndpointAddress) |
使用指定的 WebScriptEndpoint 和 ContractDescription 初始化 EndpointAddress 类的新实例。Initializes a new instance of the WebScriptEndpoint class with the specified ContractDescription and EndpointAddress. |
属性
| Address |
获取或设置服务终结点的终结点地址。Gets or sets the endpoint address for the service endpoint. (继承自 ServiceEndpoint) |
| Behaviors |
获取服务终结点的行为。Gets the behaviors for the service endpoint. (继承自 ServiceEndpoint) |
| Binding |
获取或设置服务终结点的绑定。Gets or sets the binding for the service endpoint. (继承自 ServiceEndpoint) |
| ContentTypeMapper |
获取或设置与 WebContentTypeMapper 关联的 WebServiceEndpoint。Gets or sets the WebContentTypeMapper associated with the WebServiceEndpoint. (继承自 WebServiceEndpoint) |
| Contract |
获取服务终结点的协定。Gets the contract for the service endpoint. (继承自 ServiceEndpoint) |
| CrossDomainScriptAccessEnabled |
获取或设置一个值,该值指示是否为 WebServiceEndpoint 启用了跨域脚本访问。Gets or sets a value that indicates whether cross domain script access is enabled for the WebServiceEndpoint. (继承自 WebServiceEndpoint) |
| EndpointBehaviors |
获取服务的终点行为。Gets the endpoint behaviors for the service. (继承自 ServiceEndpoint) |
| HostNameComparisonMode |
获取或设置一个值,该值指示在对 URI 进行匹配时,是否使用主机名来访问服务。Gets or sets a value that indicates whether the hostname is used to reach the service when matching the URI. (继承自 WebServiceEndpoint) |
| IsSystemEndpoint |
获取或设置是否由系统生成服务终结点而不由用户定义服务终结点。Gets or sets whether the service endpoint is generated by the system as opposed to being user-defined. (继承自 ServiceEndpoint) |
| ListenUri |
获取或设置服务终结点侦听的 URI。Gets or sets the URI at which the service endpoint listens. (继承自 ServiceEndpoint) |
| ListenUriMode |
获取或设置传输处理提供给服务的供其侦听的 URI 的方式。Gets or sets how the transport handles the URI that is provided for the service to listen on. (继承自 ServiceEndpoint) |
| MaxBufferPoolSize |
获取或设置可为缓冲区管理器分配的最大内存量,该管理器管理使用此绑定的终结点所需的缓冲区。Gets or sets the maximum amount of memory allocated for the buffer manager that manages the buffers required by endpoints that use this binding. (继承自 WebServiceEndpoint) |
| MaxBufferSize |
获取或设置为从通道接收消息的消息缓冲区管理器分配并供其使用的最大内存量。Gets or sets the maximum amount of memory that is allocated for use by the manager of the message buffers that receive messages from the channel. (继承自 WebServiceEndpoint) |
| MaxReceivedMessageSize |
获取或设置绑定可处理的消息的最大大小。Gets or sets the maximum size for a message that can be processed by the binding. (继承自 WebServiceEndpoint) |
| Name |
获取或设置服务终结点的名称。Gets or sets the name of the service endpoint. (继承自 ServiceEndpoint) |
| ReaderQuotas |
获取或设置可由配置了此绑定的终结点处理的 SOAP 消息的复杂性约束。Gets or sets constraints on the complexity of SOAP messages that can be processed by endpoints configured with this binding. (继承自 WebServiceEndpoint) |
| Security |
获取与此绑定一起使用的安全设置。Gets the security settings used with this binding. (继承自 WebServiceEndpoint) |
| TransferMode |
获取或设置一个值,该值指示使用此绑定配置的服务是使用消息传输的流处理模式、缓冲模式还是同时使用这两种模式。Gets or sets a value that indicates whether the service configured with the binding uses streamed or buffered (or both) modes of message transfer. (继承自 WebServiceEndpoint) |
| WebEndpointType | |
| WriteEncoding |
获取或设置用于消息文本的字符编码。Gets or sets the character encoding that is used for the message text. (继承自 WebServiceEndpoint) |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |