WsdlExporter.ExportEndpoint(ServiceEndpoint) 方法
定义
生成有关指定终结点的元数据。Generates metadata about the specified endpoint.
public:
override void ExportEndpoint(System::ServiceModel::Description::ServiceEndpoint ^ endpoint);
public override void ExportEndpoint (System.ServiceModel.Description.ServiceEndpoint endpoint);
override this.ExportEndpoint : System.ServiceModel.Description.ServiceEndpoint -> unit
Public Overrides Sub ExportEndpoint (endpoint As ServiceEndpoint)
参数
- endpoint
- ServiceEndpoint
要返回其元数据的 ServiceEndpoint。The ServiceEndpoint about which to return metadata.
例外
发生错误的导出程序。The exporter encountered an error.
endpoint 为 null。endpoint is null.
绑定为 null。The binding is null.
示例
下面的代码示例演示了如何导出单个终结点。The following code example shows how to export a single endpoint.
exporter.PolicyVersion = PolicyVersion.Policy15;
exporter.PolicyVersion = PolicyVersion.Policy15
注解
使用 ExportEndpoint 方法可创建单个终结点的元数据。Use the ExportEndpoint method to create metadata about a single endpoint.