---
title: "クラス内容一覧フィールド"
slug: "sitecore.layoutservice.client.response.model.fields.contentlistfield-1"
abstract: ""
---
# クラス内容一覧フィールド

リストフィールドタイプを特定のモデルにマッピングできます。

## 相続

System.Object

コンテンツリストフィールド

### 実装

[もしも](https://doc.sitecore.com/xp/ja/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.response.model.ifield.html)

[IFieldリーダー](https://doc.sitecore.com/xp/ja/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.response.model.ifieldreader.html)

#### **名前空間**:Sitecore。LayoutService.Client.Response.Model.Fields

##### **アセンブリ**:Sitecore。LayoutService.Client.Abstractions.dll

##### 構文論

public class ContentListField<TTargetModel> : List<ItemLinkField<TTargetModel>>, IField, IFieldReader where TTargetModel : class

##### 型パラメータ

名称

概要

TTargetModel

各リスト項目のターゲットをマッピングするための強力型付けモデル。

### コンストラクター

#### ContentListField()

##### 宣言

public ContentListField()

### 方法

#### HandleRead(タイプ)

指定された型としてフィールドデータのインスタンスを返します。

##### 宣言

protected virtual object HandleRead(Type type)

##### パラメータ

種類

名称

概要

System.Type

種類

この分野を「タイプ」と読むべきタイプです。

##### 返還

種類

概要

System.Object

指定されたタイプの新しいインスタンスです。

#### Read(タイプ)

現在のフィールドを指定された型として読み取る。型は[IField](https://doc.sitecore.com/xp/ja/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.response.model.ifield.html)を実装しなければならない。

##### 宣言

public virtual object Read(Type type)

##### パラメータ

種類

名称

概要

System.Type

種類

読むべき分野の種類。

##### 返還

種類

概要

System.Object

成功すれば新しいインスタンスです。

#### Read()

現在のフィールドを指定された型として読み込みます。

##### 宣言

public virtual TField Read<TField>()
 where TField : IField

##### 返還

種類

概要

ピールド

新たな TFieldのインスタンス。

##### 型パラメータ

名称

概要

ピールド

読むべきフィールドの種類。

#### TryRead(Type, out IField)

現在のフィールドを指定された型として読み取ろうとします。型は[IField](https://doc.sitecore.com/xp/ja/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.response.model.ifield.html)を実装しなければなりません。

##### 宣言

public virtual bool TryRead(Type type, out IField field)

##### パラメータ

種類

名称

概要

System.Type

種類

読むべき分野の種類。

もしも

フィールド

その結果得られるフィールド。

##### 返還

種類

概要

System.Boolean(システム・ブール)

指定された型としてフィールドを読み取れる場合に真、そうでなければ偽となります。

#### TryRead(チーム外)

現在のフィールドを指定された型として読み取ろうとします。

##### 宣言

public virtual bool TryRead<TField>(out TField field)
 where TField : IField

##### パラメータ

種類

名称

概要

ピールド

フィールド

成功した場合、その結果のインスタンスが成立します。

##### 返還

種類

概要

System.Boolean(システム・ブール)

指定された型としてフィールドを読み取れる場合に真、そうでなければ偽となります。

##### 型パラメータ

名称

概要

ピールド

読むべきフィールドの種類。

### 実装

[もしも](https://doc.sitecore.com/xp/ja/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.response.model.ifield.html)

[IFieldリーダー](https://doc.sitecore.com/xp/ja/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.response.model.ifieldreader.html)