Прочетете на английски Редактиране

Споделяне чрез


ServiceHostBase.CreateDescription Method

Definition

When implemented in a derived class, creates the description of the hosted service.

C#
protected abstract System.ServiceModel.Description.ServiceDescription CreateDescription(out System.Collections.Generic.IDictionary<string,System.ServiceModel.Description.ContractDescription> implementedContracts);

Parameters

implementedContracts
IDictionary<String,ContractDescription>

The IDictionary<TKey,TValue> that contains the ContractDescription objects for the service.

Returns

The ServiceDescription for the hosted service.

Examples

C#
protected override
        ServiceDescription
        CreateDescription (out System.Collections.Generic.IDictionary<String, ContractDescription> id )
{
    id = null;
    return new ServiceDescription();
}

Applies to

Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1