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 attribute);
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)
參數
- operation
- OperationDescription
要匯出或序列化的 OperationDescription。
- attribute
- XmlSerializerFormatAttribute
用於保留 SOAP use 和格式選項的 XmlSerializerFormatAttribute。