DiscoveryServiceExtension.PublishedEndpoints 属性
定义
获取已发布终结点的只读集合。Gets a read-only collection of published endpoints.
public:
property System::Collections::ObjectModel::ReadOnlyCollection<System::ServiceModel::Discovery::EndpointDiscoveryMetadata ^> ^ PublishedEndpoints { System::Collections::ObjectModel::ReadOnlyCollection<System::ServiceModel::Discovery::EndpointDiscoveryMetadata ^> ^ get(); };
public System.Collections.ObjectModel.ReadOnlyCollection<System.ServiceModel.Discovery.EndpointDiscoveryMetadata> PublishedEndpoints { get; }
member this.PublishedEndpoints : System.Collections.ObjectModel.ReadOnlyCollection<System.ServiceModel.Discovery.EndpointDiscoveryMetadata>
Public ReadOnly Property PublishedEndpoints As ReadOnlyCollection(Of EndpointDiscoveryMetadata)
属性值
已发布终结点的只读集合。A read-only collection of published endpoints.
注解
仅应在成功打开 ServiceHost 之后访问此属性。The property should be accessed only after the ServiceHost has successfully opened. 当 ServiceHost 处于 Opening 状态时,将生成 EndpointDiscoveryMetadata 并将其添加到集合中。When the ServiceHost is in Opening state, the EndpointDiscoveryMetadata is being generated and added to the collection.