IDataContractSurrogate.GetKnownCustomDataTypes(Collection<Type>) 方法

定义

设置用于自定义数据对象的序列化和反序列化的已知类型的集合。

public:
 void GetKnownCustomDataTypes(System::Collections::ObjectModel::Collection<Type ^> ^ customDataTypes);
public void GetKnownCustomDataTypes(System.Collections.ObjectModel.Collection<Type> customDataTypes);
abstract member GetKnownCustomDataTypes : System.Collections.ObjectModel.Collection<Type> -> unit
Public Sub GetKnownCustomDataTypes (customDataTypes As Collection(Of Type))

参数

customDataTypes
Collection<Type>

要向其添加已知类型的一种Collection<T>Type

注解

只有在使用该方法将批注插入到架构中时,才需要在架构导出或架构导入期间使用此方法 GetCustomDataToExport

适用于