Bagikan melalui


IConventionSequence.SetClrType(Type, Boolean) Metode

Definisi

Perhatian

Use SetType

Mengatur nilai yang Type dikembalikan oleh urutan.

public void SetClrType (Type clrType, bool fromDataAnnotation = false);
[System.Obsolete("Use SetType")]
public Type SetClrType (Type type, bool fromDataAnnotation = false);
[System.Obsolete("Use SetType")]
public Type? SetClrType (Type? type, bool fromDataAnnotation = false);
abstract member SetClrType : Type * bool -> unit
[<System.Obsolete("Use SetType")>]
abstract member SetClrType : Type * bool -> Type
Public Sub SetClrType (clrType As Type, Optional fromDataAnnotation As Boolean = false)
Public Function SetClrType (type As Type, Optional fromDataAnnotation As Boolean = false) As Type

Parameter

clrTypetype
Type

Nilai Type yang dikembalikan oleh urutan.

fromDataAnnotation
Boolean

Menunjukkan apakah konfigurasi ditentukan menggunakan anotasi data.

Mengembalikan

Nilai yang dikonfigurasi.

Atribut

Berlaku untuk