PeerTransportBindingElement 类   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
PeerChannel feature is obsolete and will be removed in the future.
定义用于创建对等消息传输通道的绑定元素。
public ref class PeerTransportBindingElement sealed : System::ServiceModel::Channels::TransportBindingElement, System::ServiceModel::Description::IPolicyExportExtension, System::ServiceModel::Description::IWsdlExportExtension
	public sealed class PeerTransportBindingElement : System.ServiceModel.Channels.TransportBindingElement, System.ServiceModel.Description.IPolicyExportExtension, System.ServiceModel.Description.IWsdlExportExtension
	[System.Obsolete("PeerChannel feature is obsolete and will be removed in the future.", false)]
public sealed class PeerTransportBindingElement : System.ServiceModel.Channels.TransportBindingElement, System.ServiceModel.Description.IPolicyExportExtension, System.ServiceModel.Description.IWsdlExportExtension
	type PeerTransportBindingElement = class
    inherit TransportBindingElement
    interface IWsdlExportExtension
    interface IPolicyExportExtension
	[<System.Obsolete("PeerChannel feature is obsolete and will be removed in the future.", false)>]
type PeerTransportBindingElement = class
    inherit TransportBindingElement
    interface IWsdlExportExtension
    interface IPolicyExportExtension
	Public NotInheritable Class PeerTransportBindingElement
Inherits TransportBindingElement
Implements IPolicyExportExtension, IWsdlExportExtension
		- 继承
 
- 属性
 
- 实现
 
注解
此传输不可用于包含请求/答复操作的协定。
构造函数
| PeerTransportBindingElement() |  
		 初始化 PeerTransportBindingElement 类的新默认实例。  | 
        	
属性
| ListenIPAddress |  
		 获取或设置 IP 地址,此绑定元素创建的对等消息传输会在该 IP 地址上进行侦听。  | 
        	
| ManualAddressing | 
		   获取或设置一个值,该值指示是否要求对消息进行手动寻址。 (继承自 TransportBindingElement) | 
        	
| MaxBufferPoolSize | 
		   获取或设置传输消息使用的任何缓冲池的最大字节大小。 (继承自 TransportBindingElement) | 
        	
| MaxReceivedMessageSize |  
		 获取或设置指定发送到此绑定创建的传输通道的最大消息大小的值(以字节为单位)。  | 
        	
| Port |  
		 获取或设置网络端口,此绑定元素创建的对等消息传输通道会在该端口上进行侦听。  | 
        	
| Scheme |  
		 获取方案,用于指出此绑定元素创建的通道在传输消息时使用的协议。  | 
        	
| Security |  
		 获取此绑定元素创建的传输通道的特定安全设置。  | 
        	
方法
| BuildChannelFactory<TChannel>(BindingContext) |  
		 创建一个通道工厂,该工厂可创建用于发送消息的通道。  | 
        	
| BuildChannelListener<TChannel>(BindingContext) |  
		 创建指定类型的用于接收消息的通道侦听器。  | 
        	
| CanBuildChannelFactory<TChannel>(BindingContext) |  
		 确定是否可生成指定类型的通道工厂。  | 
        	
| CanBuildChannelListener<TChannel>(BindingContext) |  
		 确定是否可生成指定类型的通道侦听器。  | 
        	
| Clone() |  
		 创建当前绑定元素的副本。  | 
        	
| Equals(Object) | 
		   确定指定对象是否等于当前对象。 (继承自 Object) | 
        	
| GetHashCode() | 
		   作为默认哈希函数。 (继承自 Object) | 
        	
| GetProperty<T>(BindingContext) |  
		 从指定的 BindingContext 对象返回一个属性。  | 
        	
| GetType() | 
		   获取当前实例的 Type。 (继承自 Object) | 
        	
| MemberwiseClone() | 
		   创建当前 Object 的浅表副本。 (继承自 Object) | 
        	
| ToString() | 
		   返回表示当前对象的字符串。 (继承自 Object) | 
        	
显式接口实现
| IPolicyExportExtension.ExportPolicy(MetadataExporter, PolicyConversionContext) |  
		 为终结点将自定义对等传输通道元素写入到生成的元数据中。  | 
        	
| IWsdlExportExtension.ExportContract(WsdlExporter, WsdlContractConversionContext) |  
		 为协定将自定义对等传输通道元素写入到生成的 WSDL 中。  | 
        	
| IWsdlExportExtension.ExportEndpoint(WsdlExporter, WsdlEndpointConversionContext) |  
		 为终结点将自定义对等传输通道元素写入到生成的 WSDL 中。  |