DataContractSerializerOperationBehavior 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 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。