語言

TypedMessageConverter.Create 方法

定義

代表一個靜態方法,回傳一個 TypedMessageConverter 實例。

多載

名稱 Description
Create(Type, String)

代表一個靜態方法,回傳一個 TypedMessageConverter 實例。

Create(Type, String, DataContractFormatAttribute)

代表一個靜態方法,回傳一個 TypedMessageConverter 實例。

Create(Type, String, XmlSerializerFormatAttribute)

代表一個靜態方法,回傳一個 TypedMessageConverter 實例。

Create(Type, String, String)

代表一個靜態方法,回傳一個 TypedMessageConverter 實例。

Create(Type, String, String, DataContractFormatAttribute)

代表一個靜態方法,回傳一個 TypedMessageConverter 實例。

Create(Type, String, String, XmlSerializerFormatAttribute)

代表一個靜態方法,回傳一個 TypedMessageConverter 實例。

Create(Type, String)

來源:
TypedMessageConverter.cs
來源:
TypedMessageConverter.cs
來源:
TypedMessageConverter.cs

代表一個靜態方法,回傳一個 TypedMessageConverter 實例。

public:
 static System::ServiceModel::Description::TypedMessageConverter ^ Create(Type ^ messageContract, System::String ^ action);
public static System.ServiceModel.Description.TypedMessageConverter Create(Type messageContract, string action);
static member Create : Type * string -> System.ServiceModel.Description.TypedMessageConverter
Public Shared Function Create (messageContract As Type, action As String) As TypedMessageConverter

參數

messageContract
Type

一個以註解為 Type的訊息合約類型MessageContractAttribute。

action
String

一個動作串。

傳回

TypedMessageConverter實例。

例外狀況

論證如下 null

指定的訊息合約類型並未套用 MessageContractAttribute

適用於

Create(Type, String, DataContractFormatAttribute)

來源:
TypedMessageConverter.cs
來源:
TypedMessageConverter.cs
來源:
TypedMessageConverter.cs

代表一個靜態方法,回傳一個 TypedMessageConverter 實例。

public:
 static System::ServiceModel::Description::TypedMessageConverter ^ Create(Type ^ messageContract, System::String ^ action, System::ServiceModel::DataContractFormatAttribute ^ formatterAttribute);
public static System.ServiceModel.Description.TypedMessageConverter Create(Type messageContract, string action, System.ServiceModel.DataContractFormatAttribute formatterAttribute);
static member Create : Type * string * System.ServiceModel.DataContractFormatAttribute -> System.ServiceModel.Description.TypedMessageConverter
Public Shared Function Create (messageContract As Type, action As String, formatterAttribute As DataContractFormatAttribute) As TypedMessageConverter

參數

messageContract
Type

一個以註解為 Type的訊息合約類型MessageContractAttribute。

action
String

一個動作串。

formatterAttribute
DataContractFormatAttribute

A DataContractFormatAttribute 指定要使用的格式化器。

傳回

TypedMessageConverter實例。

例外狀況

論證如下 null

指定的訊息合約類型並未套用 MessageContractAttribute

適用於

Create(Type, String, XmlSerializerFormatAttribute)

來源:
TypedMessageConverter.cs
來源:
TypedMessageConverter.cs
來源:
TypedMessageConverter.cs

代表一個靜態方法,回傳一個 TypedMessageConverter 實例。

public:
 static System::ServiceModel::Description::TypedMessageConverter ^ Create(Type ^ messageContract, System::String ^ action, System::ServiceModel::XmlSerializerFormatAttribute ^ formatterAttribute);
public static System.ServiceModel.Description.TypedMessageConverter Create(Type messageContract, string action, System.ServiceModel.XmlSerializerFormatAttribute formatterAttribute);
static member Create : Type * string * System.ServiceModel.XmlSerializerFormatAttribute -> System.ServiceModel.Description.TypedMessageConverter
Public Shared Function Create (messageContract As Type, action As String, formatterAttribute As XmlSerializerFormatAttribute) As TypedMessageConverter

參數

messageContract
Type

一個以註解為 Type的訊息合約類型MessageContractAttribute。

action
String

一個動作串。

formatterAttribute
XmlSerializerFormatAttribute

A XmlSerializerFormatAttribute 指定要使用的格式化器。

傳回

TypedMessageConverter實例。

例外狀況

論證如下 null

指定的訊息合約類型並未套用 MessageContractAttribute

適用於

Create(Type, String, String)

來源:
TypedMessageConverter.cs
來源:
TypedMessageConverter.cs
來源:
TypedMessageConverter.cs

代表一個靜態方法,回傳一個 TypedMessageConverter 實例。

public:
 static System::ServiceModel::Description::TypedMessageConverter ^ Create(Type ^ messageContract, System::String ^ action, System::String ^ defaultNamespace);
public static System.ServiceModel.Description.TypedMessageConverter Create(Type messageContract, string action, string defaultNamespace);
static member Create : Type * string * string -> System.ServiceModel.Description.TypedMessageConverter
Public Shared Function Create (messageContract As Type, action As String, defaultNamespace As String) As TypedMessageConverter

參數

messageContract
Type

一個以註解為 Type的訊息合約類型MessageContractAttribute。

action
String

一個動作串。

defaultNamespace
String

命名空間。

傳回

TypedMessageConverter實例。

例外狀況

論證如下 null

指定的訊息合約類型並未套用 MessageContractAttribute

適用於

Create(Type, String, String, DataContractFormatAttribute)

來源:
TypedMessageConverter.cs
來源:
TypedMessageConverter.cs
來源:
TypedMessageConverter.cs

代表一個靜態方法,回傳一個 TypedMessageConverter 實例。

public:
 static System::ServiceModel::Description::TypedMessageConverter ^ Create(Type ^ messageContract, System::String ^ action, System::String ^ defaultNamespace, System::ServiceModel::DataContractFormatAttribute ^ formatterAttribute);
public static System.ServiceModel.Description.TypedMessageConverter Create(Type messageContract, string action, string defaultNamespace, System.ServiceModel.DataContractFormatAttribute formatterAttribute);
static member Create : Type * string * string * System.ServiceModel.DataContractFormatAttribute -> System.ServiceModel.Description.TypedMessageConverter
Public Shared Function Create (messageContract As Type, action As String, defaultNamespace As String, formatterAttribute As DataContractFormatAttribute) As TypedMessageConverter

參數

messageContract
Type

一個以註解為 Type的訊息合約類型MessageContractAttribute。

action
String

一個動作串。

defaultNamespace
String

命名空間。

formatterAttribute
DataContractFormatAttribute

A DataContractFormatAttribute 指定要使用的格式化器。

傳回

TypedMessageConverter實例。

例外狀況

論證如下 null

指定的訊息合約類型並未套用 MessageContractAttribute

適用於

Create(Type, String, String, XmlSerializerFormatAttribute)

來源:
TypedMessageConverter.cs
來源:
TypedMessageConverter.cs
來源:
TypedMessageConverter.cs

代表一個靜態方法,回傳一個 TypedMessageConverter 實例。

public:
 static System::ServiceModel::Description::TypedMessageConverter ^ Create(Type ^ messageContract, System::String ^ action, System::String ^ defaultNamespace, System::ServiceModel::XmlSerializerFormatAttribute ^ formatterAttribute);
public static System.ServiceModel.Description.TypedMessageConverter Create(Type messageContract, string action, string defaultNamespace, System.ServiceModel.XmlSerializerFormatAttribute formatterAttribute);
static member Create : Type * string * string * System.ServiceModel.XmlSerializerFormatAttribute -> System.ServiceModel.Description.TypedMessageConverter
Public Shared Function Create (messageContract As Type, action As String, defaultNamespace As String, formatterAttribute As XmlSerializerFormatAttribute) As TypedMessageConverter

參數

messageContract
Type

一個以註解為 Type的訊息合約類型MessageContractAttribute。

action
String

一個動作串。

defaultNamespace
String

命名空間。

formatterAttribute
XmlSerializerFormatAttribute

A XmlSerializerFormatAttribute 指定要使用的格式化器。

傳回

TypedMessageConverter實例。

例外狀況

論證如下 null

指定的訊息合約類型並未套用 MessageContractAttribute

適用於