Condividi tramite


InputFormatter.GetDefaultValueForType(Type) Metodo

Definizione

Ottiene il valore predefinito per un determinato tipo. Utilizzato per restituire un valore predefinito quando il corpo non contiene contenuto.

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

Parametri

modelType
Type

Tipo di valore.

Restituisce

Valore predefinito per il modelType tipo.

Si applica a