ServiceHostBase.CreateDescription 方法

定义

在派生类中实现时,创建所承载服务的说明。

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();
}

适用于