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
AsynchronousMethods

Generates asynchronous methods for operations in addition to synchronous versions.

ChannelInterface

Generates an interface that derives from the contract interface and IClientChannel.

ClientClass

Generates a Windows Communication Foundation (WCF) client class that extends ClientBase<TChannel>.

EventBasedAsynchronousMethods

Generates event-based asynchronous methods for operations in addition to synchronous versions.

InternalTypes

Causes all types to be marked internal.

None

No options specified.

TaskBasedAsynchronousMethod

Generates task based asynchronous methods for operations in addition to synchronous versions.

TypedMessages

Generate message contracts.

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

.NET Framework
Available since 3.0
Return to top
Show: