ServiceContractGenerationOptions 列舉

定義

表示使用 ServiceContractGenerator 時可用的合約產生選項。

此列舉支援其成員值的位元組合。

public enum class ServiceContractGenerationOptions
[System.Flags]
public enum ServiceContractGenerationOptions
[<System.Flags>]
type ServiceContractGenerationOptions = 
Public Enum ServiceContractGenerationOptions
繼承
ServiceContractGenerationOptions
屬性

欄位

AsynchronousMethods 1

除了同步版本,產生作業的非同步方法。

ChannelInterface 2

產生從合約介面和 IClientChannel 衍生的介面。

ClientClass 8

產生擴充 ClientBase<TChannel>的 Windows Communication Foundation (WCF) 用戶端類別。

EventBasedAsynchronousMethods 32

除了同步版本,還會產生作業的事件架構非同步方法。

InternalTypes 4

造成所有的型別在內部標示。

None 0

未指定選項。

TaskBasedAsynchronousMethod 64

除了同步版本,還會產生作業的工作架構非同步方法。

TypedMessages 16

產生訊息合約。

備註

您可以使用具有 ServiceContractGenerationOptions 屬性的 ServiceContractGenerator.Options 列舉型別來控制產生的合約程式碼。

適用於