ServiceHost.CreateDescription 方法

定义

创建承载服务的说明。

protected:
 override System::ServiceModel::Description::ServiceDescription ^ CreateDescription([Runtime::InteropServices::Out] System::Collections::Generic::IDictionary<System::String ^, System::ServiceModel::Description::ContractDescription ^> ^ % implementedContracts);
protected override System.ServiceModel.Description.ServiceDescription CreateDescription (out System.Collections.Generic.IDictionary<string,System.ServiceModel.Description.ContractDescription> implementedContracts);
override this.CreateDescription : IDictionary -> System.ServiceModel.Description.ServiceDescription
Protected Overrides Function CreateDescription (ByRef implementedContracts As IDictionary(Of String, ContractDescription)) As ServiceDescription

参数

implementedContracts
IDictionary<String,ContractDescription>

具有密钥对类型(IDictionary<TKey,TValue>String)的 ContractDescription,包含已实现的承载服务的键控协定。

返回

ServiceDescription

承载服务的 ServiceDescription

例外

承载服务的类型为 null

注解

此方法用于通过自定义编程模型构造协定说明。 重写相应的基类方法, CreateDescription(IDictionary<String,ContractDescription>)以实现自定义模型。

适用于