XmlSerializerOperationBehavior 构造函数

定义

初始化 XmlSerializerOperationBehavior 类的新实例。

重载

XmlSerializerOperationBehavior(OperationDescription)

使用特定操作初始化 XmlSerializerOperationBehavior 类的新实例。

XmlSerializerOperationBehavior(OperationDescription, XmlSerializerFormatAttribute)

初始化 XmlSerializerOperationBehavior 类的新实例。

XmlSerializerOperationBehavior(OperationDescription)

使用特定操作初始化 XmlSerializerOperationBehavior 类的新实例。

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

参数

operation
OperationDescription

要导出或序列化的 OperationDescription

适用于

XmlSerializerOperationBehavior(OperationDescription, XmlSerializerFormatAttribute)

初始化 XmlSerializerOperationBehavior 类的新实例。

public:
 XmlSerializerOperationBehavior(System::ServiceModel::Description::OperationDescription ^ operation, System::ServiceModel::XmlSerializerFormatAttribute ^ attribute);
public:
 XmlSerializerOperationBehavior(System::ServiceModel::Description::OperationDescription ^ operation, System::ServiceModel::XmlSerializerFormatAttribute ^ format);
public XmlSerializerOperationBehavior (System.ServiceModel.Description.OperationDescription operation, System.ServiceModel.XmlSerializerFormatAttribute attribute);
public XmlSerializerOperationBehavior (System.ServiceModel.Description.OperationDescription operation, System.ServiceModel.XmlSerializerFormatAttribute format);
new System.ServiceModel.Description.XmlSerializerOperationBehavior : System.ServiceModel.Description.OperationDescription * System.ServiceModel.XmlSerializerFormatAttribute -> System.ServiceModel.Description.XmlSerializerOperationBehavior
new System.ServiceModel.Description.XmlSerializerOperationBehavior : System.ServiceModel.Description.OperationDescription * System.ServiceModel.XmlSerializerFormatAttribute -> System.ServiceModel.Description.XmlSerializerOperationBehavior
Public Sub New (operation As OperationDescription, attribute As XmlSerializerFormatAttribute)
Public Sub New (operation As OperationDescription, format As XmlSerializerFormatAttribute)

参数

operation
OperationDescription

要导出或序列化的 OperationDescription

attributeformat
XmlSerializerFormatAttribute

一个 XmlSerializerFormatAttribute,用于保存 SOAP 使用和格式选项。

适用于