ServiceDiscoveryBehavior 类
定义
此类控制服务终结点的可发现性。This class controls the discoverability of service endpoints.
public ref class ServiceDiscoveryBehavior : System::ServiceModel::Description::IServiceBehavior
public class ServiceDiscoveryBehavior : System.ServiceModel.Description.IServiceBehavior
type ServiceDiscoveryBehavior = class
interface IServiceBehavior
Public Class ServiceDiscoveryBehavior
Implements IServiceBehavior
- 继承
-
ServiceDiscoveryBehavior
- 实现
注解
ServiceDiscoveryBehavior 使服务的所有终结点成为可发现的终结点。A ServiceDiscoveryBehavior makes all endpoints of a service discoverable. 使用 EndpointDiscoveryBehavior 可控制特定终结点的可发现性以及可发现的元数据。Use EndpointDiscoveryBehavior to control the discoverability of a particular endpoint as well as discoverable metadata.
构造函数
| ServiceDiscoveryBehavior() |
创建 ServiceDiscoveryBehavior 类的新实例。Creates a new instance of the ServiceDiscoveryBehavior class. |
属性
| AnnouncementEndpoints |
获取公告终结点的集合。Gets a collection of announcement endpoints. 使用此集合可指定用于发送公告消息的终结点。Use this collection to specify the endpoints to use for sending announcement messages. |
方法
| 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) |