ServiceContractGenerationContext 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 ServiceContractGenerationContext 類別的新執行個體。
多載
ServiceContractGenerationContext(ServiceContractGenerator, ContractDescription, CodeTypeDeclaration) |
使用指定的合約產生器、合約描述和合約程式碼型別宣告,初始化 ServiceContractGenerationContext 類別的新執行個體。 |
ServiceContractGenerationContext(ServiceContractGenerator, ContractDescription, CodeTypeDeclaration, CodeTypeDeclaration) |
使用指定的合約產生器、合約描述和合約程式碼型別宣告,初始化 ServiceContractGenerationContext 類別的新執行個體。 |
ServiceContractGenerationContext(ServiceContractGenerator, ContractDescription, CodeTypeDeclaration)
使用指定的合約產生器、合約描述和合約程式碼型別宣告,初始化 ServiceContractGenerationContext 類別的新執行個體。
public:
ServiceContractGenerationContext(System::ServiceModel::Description::ServiceContractGenerator ^ serviceContractGenerator, System::ServiceModel::Description::ContractDescription ^ contract, System::CodeDom::CodeTypeDeclaration ^ contractType);
public ServiceContractGenerationContext (System.ServiceModel.Description.ServiceContractGenerator serviceContractGenerator, System.ServiceModel.Description.ContractDescription contract, System.CodeDom.CodeTypeDeclaration contractType);
new System.ServiceModel.Description.ServiceContractGenerationContext : System.ServiceModel.Description.ServiceContractGenerator * System.ServiceModel.Description.ContractDescription * System.CodeDom.CodeTypeDeclaration -> System.ServiceModel.Description.ServiceContractGenerationContext
Public Sub New (serviceContractGenerator As ServiceContractGenerator, contract As ContractDescription, contractType As CodeTypeDeclaration)
參數
- serviceContractGenerator
- ServiceContractGenerator
產生合約的程式碼的產生器。
- contract
- ContractDescription
要產生的合約的合約描述。
- contractType
- CodeTypeDeclaration
要產生的合約程式碼的 CodeTypeDeclaration。
適用於
ServiceContractGenerationContext(ServiceContractGenerator, ContractDescription, CodeTypeDeclaration, CodeTypeDeclaration)
使用指定的合約產生器、合約描述和合約程式碼型別宣告,初始化 ServiceContractGenerationContext 類別的新執行個體。
public:
ServiceContractGenerationContext(System::ServiceModel::Description::ServiceContractGenerator ^ serviceContractGenerator, System::ServiceModel::Description::ContractDescription ^ contract, System::CodeDom::CodeTypeDeclaration ^ contractType, System::CodeDom::CodeTypeDeclaration ^ duplexCallbackType);
public ServiceContractGenerationContext (System.ServiceModel.Description.ServiceContractGenerator serviceContractGenerator, System.ServiceModel.Description.ContractDescription contract, System.CodeDom.CodeTypeDeclaration contractType, System.CodeDom.CodeTypeDeclaration duplexCallbackType);
new System.ServiceModel.Description.ServiceContractGenerationContext : System.ServiceModel.Description.ServiceContractGenerator * System.ServiceModel.Description.ContractDescription * System.CodeDom.CodeTypeDeclaration * System.CodeDom.CodeTypeDeclaration -> System.ServiceModel.Description.ServiceContractGenerationContext
Public Sub New (serviceContractGenerator As ServiceContractGenerator, contract As ContractDescription, contractType As CodeTypeDeclaration, duplexCallbackType As CodeTypeDeclaration)
參數
- serviceContractGenerator
- ServiceContractGenerator
產生合約的程式碼的產生器。
- contract
- ContractDescription
要產生的合約的合約描述。
- contractType
- CodeTypeDeclaration
要產生的合約程式碼的 CodeTypeDeclaration。
- duplexCallbackType
- CodeTypeDeclaration
要產生的雙工合約程式碼的 CodeTypeDeclaration。