InputFormatter.GetDefaultValueForType(Type) 方法

定義

取得指定型別的預設值。 當本文不包含任何內容時,用來傳回預設值。

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

參數

modelType
Type

值的類型。

傳回

型別的 modelType 預設值。

適用於