Compartir a través de


InputFormatter.GetDefaultValueForType(Type) Método

Definición

Obtiene el valor predeterminado de un tipo determinado. Se usa para devolver un valor predeterminado cuando el cuerpo no contiene contenido.

protected:
 virtual System::Object ^ GetDefaultValueForType(Type ^ modelType);
protected virtual object GetDefaultValueForType (Type modelType);
protected virtual object? GetDefaultValueForType (Type modelType);
abstract member GetDefaultValueForType : Type -> obj
override this.GetDefaultValueForType : Type -> obj
Protected Overridable Function GetDefaultValueForType (modelType As Type) As Object

Parámetros

modelType
Type

Tipo del valor.

Devoluciones

Valor predeterminado del modelType tipo.

Se aplica a