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