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