ServiceHost.CreateDescription Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a description of the service hosted.
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
Parameters
- implementedContracts
- IDictionary<String,ContractDescription>
The IDictionary<TKey,TValue> with key pairs of type (String, ContractDescription) that contains the keyed-contracts of the hosted service that have been implemented.
Returns
A ServiceDescription of the hosted service.
Exceptions
The type of service hosted is null
.
Remarks
This method is used to construct contract descriptions from customized programming models. Override the corresponding base class method, CreateDescription(IDictionary<String,ContractDescription>), to implement the customized model.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈