Expand Minimize

ServiceContractGenerationOptions Enumeration

Represents the contract generation options available using the System.ServiceModel.Description.ServiceContractGenerator.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

[FlagsAttribute]
public enum ServiceContractGenerationOptions

Member nameDescription
AsynchronousMethodsGenerates asynchronous methods for operations in addition to synchronous versions.
ChannelInterfaceGenerates an interface that derives from the contract interface and IClientChannel.
ClientClassGenerates a Windows Communication Foundation (WCF) client class that extends ClientBase<TChannel>.
EventBasedAsynchronousMethodsGenerates event-based asynchronous methods for operations in addition to synchronous versions.
InternalTypesCauses all types to be marked internal.
NoneNo options specified.
TaskBasedAsynchronousMethodGenerates task based asynchronous methods for operations in addition to synchronous versions.
TypedMessagesGenerate message contracts.

Use the ServiceContractGenerationOptions enumeration with the ServiceContractGenerator.Options property to control the generated contract code.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft