Share via


IConventionTypeBase.AddIgnored(String, Boolean) Metodo

Definizione

Contrassegna il nome membro specificato come ignorato, impedendo alle convenzioni di aggiungere una proprietà corrispondente o lo spostamento al tipo.

public void AddIgnored (string memberName, bool fromDataAnnotation = false);
public string AddIgnored (string memberName, bool fromDataAnnotation = false);
public string? AddIgnored (string memberName, bool fromDataAnnotation = false);
abstract member AddIgnored : string * bool -> unit
abstract member AddIgnored : string * bool -> string
Public Sub AddIgnored (memberName As String, Optional fromDataAnnotation As Boolean = false)
Public Function AddIgnored (memberName As String, Optional fromDataAnnotation As Boolean = false) As String

Parametri

memberName
String

Nome del membro da ignorare.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata usando un'annotazione dati.

Restituisce

Nome membro ignorato.

Si applica a