ServiceContractGenerator Constructors
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.
Initializes a new instance of the ServiceContractGenerator class.
Overloads
ServiceContractGenerator() |
Initializes a new instance of the ServiceContractGenerator class with a new CodeCompileUnit instance. |
ServiceContractGenerator(CodeCompileUnit) |
Initializes a new instance of the ServiceContractGenerator class with the specified CodeCompileUnit instance. |
ServiceContractGenerator(Configuration) |
Initializes a new instance of the ServiceContractGenerator class with the specified Configuration instance. |
ServiceContractGenerator(CodeCompileUnit, Configuration) |
Initializes a new instance of the ServiceContractGenerator class with the specified CodeCompileUnit instance and the specified Configuration instance. |
ServiceContractGenerator()
Initializes a new instance of the ServiceContractGenerator class with a new CodeCompileUnit instance.
public:
ServiceContractGenerator();
public ServiceContractGenerator ();
Public Sub New ()
Applies to
ServiceContractGenerator(CodeCompileUnit)
Initializes a new instance of the ServiceContractGenerator class with the specified CodeCompileUnit instance.
public:
ServiceContractGenerator(System::CodeDom::CodeCompileUnit ^ targetCompileUnit);
public ServiceContractGenerator (System.CodeDom.CodeCompileUnit targetCompileUnit);
new System.ServiceModel.Description.ServiceContractGenerator : System.CodeDom.CodeCompileUnit -> System.ServiceModel.Description.ServiceContractGenerator
Public Sub New (targetCompileUnit As CodeCompileUnit)
Parameters
- targetCompileUnit
- CodeCompileUnit
The CodeCompileUnit instance to use to generate code.
Applies to
ServiceContractGenerator(Configuration)
Initializes a new instance of the ServiceContractGenerator class with the specified Configuration instance.
public:
ServiceContractGenerator(System::Configuration::Configuration ^ targetConfig);
public ServiceContractGenerator (System.Configuration.Configuration targetConfig);
new System.ServiceModel.Description.ServiceContractGenerator : System.Configuration.Configuration -> System.ServiceModel.Description.ServiceContractGenerator
Public Sub New (targetConfig As Configuration)
Parameters
- targetConfig
- Configuration
The Configuration instance to use to generate binding configurations.
Applies to
ServiceContractGenerator(CodeCompileUnit, Configuration)
Initializes a new instance of the ServiceContractGenerator class with the specified CodeCompileUnit instance and the specified Configuration instance.
public:
ServiceContractGenerator(System::CodeDom::CodeCompileUnit ^ targetCompileUnit, System::Configuration::Configuration ^ targetConfig);
public ServiceContractGenerator (System.CodeDom.CodeCompileUnit targetCompileUnit, System.Configuration.Configuration targetConfig);
new System.ServiceModel.Description.ServiceContractGenerator : System.CodeDom.CodeCompileUnit * System.Configuration.Configuration -> System.ServiceModel.Description.ServiceContractGenerator
Public Sub New (targetCompileUnit As CodeCompileUnit, targetConfig As Configuration)
Parameters
- targetCompileUnit
- CodeCompileUnit
The CodeCompileUnit instance to use to generate code.
- targetConfig
- Configuration
The Configuration instance to use to generate binding configurations.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應