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

适用于