DataContractSerializerOperationBehavior 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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。