EndpointDiscoveryMetadata.FromServiceEndpoint 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
FromServiceEndpoint(ServiceEndpoint) | |
FromServiceEndpoint(ServiceEndpoint, EndpointDispatcher) |
使用指定的服務端點和端點發送器,建立 EndpointDiscoveryMetadata 類別的新執行個體。 |
FromServiceEndpoint(ServiceEndpoint)
public:
static System::ServiceModel::Discovery::EndpointDiscoveryMetadata ^ FromServiceEndpoint(System::ServiceModel::Description::ServiceEndpoint ^ endpoint);
public static System.ServiceModel.Discovery.EndpointDiscoveryMetadata FromServiceEndpoint (System.ServiceModel.Description.ServiceEndpoint endpoint);
static member FromServiceEndpoint : System.ServiceModel.Description.ServiceEndpoint -> System.ServiceModel.Discovery.EndpointDiscoveryMetadata
Public Shared Function FromServiceEndpoint (endpoint As ServiceEndpoint) As EndpointDiscoveryMetadata
參數
- endpoint
- ServiceEndpoint
服務端點。
傳回
新的 EndpointDiscoveryMetadata 執行個體。
適用於
FromServiceEndpoint(ServiceEndpoint, EndpointDispatcher)
使用指定的服務端點和端點發送器,建立 EndpointDiscoveryMetadata 類別的新執行個體。
public:
static System::ServiceModel::Discovery::EndpointDiscoveryMetadata ^ FromServiceEndpoint(System::ServiceModel::Description::ServiceEndpoint ^ endpoint, System::ServiceModel::Dispatcher::EndpointDispatcher ^ endpointDispatcher);
public static System.ServiceModel.Discovery.EndpointDiscoveryMetadata FromServiceEndpoint (System.ServiceModel.Description.ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.EndpointDispatcher endpointDispatcher);
static member FromServiceEndpoint : System.ServiceModel.Description.ServiceEndpoint * System.ServiceModel.Dispatcher.EndpointDispatcher -> System.ServiceModel.Discovery.EndpointDiscoveryMetadata
Public Shared Function FromServiceEndpoint (endpoint As ServiceEndpoint, endpointDispatcher As EndpointDispatcher) As EndpointDiscoveryMetadata
參數
- endpoint
- ServiceEndpoint
端點。
- endpointDispatcher
- EndpointDispatcher
端點發送器。
傳回
新的 EndpointDiscoveryMetadata 執行個體。