ServiceHostBase.CreateDescription 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在派生类中实现时,创建所承载服务的说明。
protected:
abstract System::ServiceModel::Description::ServiceDescription ^ CreateDescription([Runtime::InteropServices::Out] System::Collections::Generic::IDictionary<System::String ^, System::ServiceModel::Description::ContractDescription ^> ^ % implementedContracts);
protected abstract System.ServiceModel.Description.ServiceDescription CreateDescription (out System.Collections.Generic.IDictionary<string,System.ServiceModel.Description.ContractDescription> implementedContracts);
abstract member CreateDescription : IDictionary -> System.ServiceModel.Description.ServiceDescription
Protected MustOverride Function CreateDescription (ByRef implementedContracts As IDictionary(Of String, ContractDescription)) As ServiceDescription
参数
- implementedContracts
- IDictionary<String,ContractDescription>
包含服务的 IDictionary<TKey,TValue> 对象的 ContractDescription。
返回
所承载服务的 ServiceDescription。
示例
protected override
ServiceDescription
CreateDescription (out System.Collections.Generic.IDictionary<String, ContractDescription> id )
{
id = null;
return new ServiceDescription();
}