共用方式為


DataContractSerializerOperationBehavior 建構函式

定義

初始化 DataContractSerializerOperationBehavior 類別的新執行個體。

多載

DataContractSerializerOperationBehavior(OperationDescription)

使用指定的作業描述,初始化 DataContractSerializerOperationBehavior 類別的新執行個體。

DataContractSerializerOperationBehavior(OperationDescription, DataContractFormatAttribute)

使用指定的作業描述和資料合約格式,初始化 DataContractSerializerOperationBehavior 類別的新執行個體。

DataContractSerializerOperationBehavior(OperationDescription)

使用指定的作業描述,初始化 DataContractSerializerOperationBehavior 類別的新執行個體。

public:
 DataContractSerializerOperationBehavior(System::ServiceModel::Description::OperationDescription ^ operation);
public DataContractSerializerOperationBehavior (System.ServiceModel.Description.OperationDescription operation);
new System.ServiceModel.Description.DataContractSerializerOperationBehavior : System.ServiceModel.Description.OperationDescription -> System.ServiceModel.Description.DataContractSerializerOperationBehavior
Public Sub New (operation As OperationDescription)

參數

operation
OperationDescription

表示作業的 OperationDescription

適用於

DataContractSerializerOperationBehavior(OperationDescription, DataContractFormatAttribute)

使用指定的作業描述和資料合約格式,初始化 DataContractSerializerOperationBehavior 類別的新執行個體。

public:
 DataContractSerializerOperationBehavior(System::ServiceModel::Description::OperationDescription ^ operation, System::ServiceModel::DataContractFormatAttribute ^ dataContractFormatAttribute);
public DataContractSerializerOperationBehavior (System.ServiceModel.Description.OperationDescription operation, System.ServiceModel.DataContractFormatAttribute dataContractFormatAttribute);
new System.ServiceModel.Description.DataContractSerializerOperationBehavior : System.ServiceModel.Description.OperationDescription * System.ServiceModel.DataContractFormatAttribute -> System.ServiceModel.Description.DataContractSerializerOperationBehavior
Public Sub New (operation As OperationDescription, dataContractFormatAttribute As DataContractFormatAttribute)

參數

operation
OperationDescription

表示作業的 OperationDescription

dataContractFormatAttribute
DataContractFormatAttribute

用來控制序列化程序的 DataContractFormatAttribute

適用於