JsonSerializerContext.GetTypeInfo(Type) 方法

定義

取得指定型別的中繼資料。

public:
 abstract System::Text::Json::Serialization::Metadata::JsonTypeInfo ^ GetTypeInfo(Type ^ type);
public abstract System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo (Type type);
abstract member GetTypeInfo : Type -> System.Text.Json.Serialization.Metadata.JsonTypeInfo
Public MustOverride Function GetTypeInfo (type As Type) As JsonTypeInfo

參數

type
Type

要擷取中繼資料的類型。

傳回

指定型別的中繼資料,如果內容沒有型別的中繼資料, null 則為 。

適用於