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 实例。