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

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


IDataContractSurrogate.GetCustomDataToExport Method

Definition

During schema export operations, inserts annotations into the schema for non-null return values.

Overloads

GetCustomDataToExport(MemberInfo, Type)

During schema export operations, inserts annotations into the schema for non-null return values.

GetCustomDataToExport(Type, Type)

During schema export operations, inserts annotations into the schema for non-null return values.

GetCustomDataToExport(MemberInfo, Type)

During schema export operations, inserts annotations into the schema for non-null return values.

C#
public object GetCustomDataToExport(System.Reflection.MemberInfo memberInfo, Type dataContractType);

Parameters

memberInfo
MemberInfo

A MemberInfo that describes the member.

dataContractType
Type

A Type.

Returns

An object that represents the annotation to be inserted into the XML schema definition.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.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

GetCustomDataToExport(Type, Type)

During schema export operations, inserts annotations into the schema for non-null return values.

C#
public object GetCustomDataToExport(Type clrType, Type dataContractType);

Parameters

clrType
Type

The CLR type to be replaced.

dataContractType
Type

The data contract type to be annotated.

Returns

An object that represents the annotation to be inserted into the XML schema definition.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.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