Compartilhar via


IConventionSequence.SetClrType(Type, Boolean) Método

Definição

Cuidado

Use SetType

Define o Type dos valores retornados pela sequência.

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

Parâmetros

clrTypetype
Type

O Type dos valores retornados pela sequência.

fromDataAnnotation
Boolean

Indica se a configuração foi especificada usando uma anotação de dados.

Retornos

O valor configurado.

Atributos

Aplica-se a