Прочетете на английски Редактиране

Споделяне чрез


TypedMessageConverter.Create Method

Definition

Represents a static method that returns a TypedMessageConverter instance.

Overloads

Create(Type, String)

Represents a static method that returns a TypedMessageConverter instance.

Create(Type, String, DataContractFormatAttribute)

Represents a static method that returns a TypedMessageConverter instance.

Create(Type, String, XmlSerializerFormatAttribute)

Represents a static method that returns a TypedMessageConverter instance.

Create(Type, String, String)

Represents a static method that returns a TypedMessageConverter instance.

Create(Type, String, String, DataContractFormatAttribute)

Represents a static method that returns a TypedMessageConverter instance.

Create(Type, String, String, XmlSerializerFormatAttribute)

Represents a static method that returns a TypedMessageConverter instance.

Create(Type, String)

Source:
TypedMessageConverter.cs
Source:
TypedMessageConverter.cs

Represents a static method that returns a TypedMessageConverter instance.

C#
public static System.ServiceModel.Description.TypedMessageConverter Create(Type messageContract, string action);

Parameters

messageContract
Type

A message contract type that is a Type annotated with a MessageContractAttribute.

action
String

An action string.

Returns

A TypedMessageConverter instance.

Exceptions

Arguments are null

The specified message contract type does not have the MessageContractAttribute applied

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

Create(Type, String, DataContractFormatAttribute)

Source:
TypedMessageConverter.cs
Source:
TypedMessageConverter.cs

Represents a static method that returns a TypedMessageConverter instance.

C#
public static System.ServiceModel.Description.TypedMessageConverter Create(Type messageContract, string action, System.ServiceModel.DataContractFormatAttribute formatterAttribute);

Parameters

messageContract
Type

A message contract type that is a Type annotated with a MessageContractAttribute.

action
String

An action string.

formatterAttribute
DataContractFormatAttribute

A DataContractFormatAttribute that specifies the formatter to be used.

Returns

A TypedMessageConverter instance.

Exceptions

Arguments are null

The specified message contract type does not have the MessageContractAttribute applied

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

Create(Type, String, XmlSerializerFormatAttribute)

Source:
TypedMessageConverter.cs
Source:
TypedMessageConverter.cs

Represents a static method that returns a TypedMessageConverter instance.

C#
public static System.ServiceModel.Description.TypedMessageConverter Create(Type messageContract, string action, System.ServiceModel.XmlSerializerFormatAttribute formatterAttribute);

Parameters

messageContract
Type

A message contract type that is a Type annotated with a MessageContractAttribute.

action
String

An action string.

formatterAttribute
XmlSerializerFormatAttribute

A XmlSerializerFormatAttribute that specifies the formatter to be used.

Returns

A TypedMessageConverter instance.

Exceptions

Arguments are null

The specified message contract type does not have the MessageContractAttribute applied

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

Create(Type, String, String)

Source:
TypedMessageConverter.cs
Source:
TypedMessageConverter.cs

Represents a static method that returns a TypedMessageConverter instance.

C#
public static System.ServiceModel.Description.TypedMessageConverter Create(Type messageContract, string action, string defaultNamespace);

Parameters

messageContract
Type

A message contract type that is a Type annotated with a MessageContractAttribute.

action
String

An action string.

defaultNamespace
String

A namespace.

Returns

A TypedMessageConverter instance.

Exceptions

Arguments are null

The specified message contract type does not have the MessageContractAttribute applied

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

Create(Type, String, String, DataContractFormatAttribute)

Source:
TypedMessageConverter.cs
Source:
TypedMessageConverter.cs

Represents a static method that returns a TypedMessageConverter instance.

C#
public static System.ServiceModel.Description.TypedMessageConverter Create(Type messageContract, string action, string defaultNamespace, System.ServiceModel.DataContractFormatAttribute formatterAttribute);

Parameters

messageContract
Type

A message contract type that is a Type annotated with a MessageContractAttribute.

action
String

An action string.

defaultNamespace
String

A namespace.

formatterAttribute
DataContractFormatAttribute

A DataContractFormatAttribute that specifies the formatter to be used.

Returns

A TypedMessageConverter instance.

Exceptions

Arguments are null

The specified message contract type does not have the MessageContractAttribute applied

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

Create(Type, String, String, XmlSerializerFormatAttribute)

Source:
TypedMessageConverter.cs
Source:
TypedMessageConverter.cs

Represents a static method that returns a TypedMessageConverter instance.

C#
public static System.ServiceModel.Description.TypedMessageConverter Create(Type messageContract, string action, string defaultNamespace, System.ServiceModel.XmlSerializerFormatAttribute formatterAttribute);

Parameters

messageContract
Type

A message contract type that is a Type annotated with a MessageContractAttribute.

action
String

An action string.

defaultNamespace
String

A namespace.

formatterAttribute
XmlSerializerFormatAttribute

A XmlSerializerFormatAttribute that specifies the formatter to be used.

Returns

A TypedMessageConverter instance.

Exceptions

Arguments are null

The specified message contract type does not have the MessageContractAttribute applied

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)