Share via


IConventionSequence.SetType(Type, Boolean) 方法

定義

Type設定序列所傳回值的 。

public Type SetType (Type type, bool fromDataAnnotation = false);
public Type? SetType (Type? type, bool fromDataAnnotation = false);
abstract member SetType : Type * bool -> Type
Public Function SetType (type As Type, Optional fromDataAnnotation As Boolean = false) As Type

參數

type
Type

Type序列所傳回值的 。

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

傳回

已設定的值。

適用於