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 既定値。

適用対象