Share via


ObjectList.AllFields 속성

정의

ObjectList 클래스에서 명시적으로 생성되거나 자동으로 생성된 모든 필드 컬렉션을 반환합니다. 기본값은 자동으로 생성된 필드의 컬렉션입니다. 이 API는 더 이상 사용되지 않습니다. ASP.NET 모바일 애플리케이션을 개발하는 방법에 대한 자세한 내용은 ASP.NET 있는 Mobile Apps & 사이트를 참조하세요.

public:
 property System::Web::UI::MobileControls::IObjectListFieldCollection ^ AllFields { System::Web::UI::MobileControls::IObjectListFieldCollection ^ get(); };
[System.ComponentModel.Bindable(false)]
[System.ComponentModel.Browsable(false)]
public System.Web.UI.MobileControls.IObjectListFieldCollection AllFields { get; }
[<System.ComponentModel.Bindable(false)>]
[<System.ComponentModel.Browsable(false)>]
member this.AllFields : System.Web.UI.MobileControls.IObjectListFieldCollection
Public ReadOnly Property AllFields As IObjectListFieldCollection

속성 값

IObjectListFieldCollection의 모든 필드가 포함된 ObjectList 개체입니다.

특성

예제

다음 코드 예제를 사용 AllFields 하는 방법에 설명 합니다 의 모든 필드를 나열 하는 속성입니다 ObjectList. 이 예제는에 대 한 보다 큰 예제의 일부는 ObjectList 개요.

private void AllFields_Click(object sender, EventArgs e)
{
    ActiveForm = Form5;
    string spec = "{0}: {1}<br/>";
    IObjectListFieldCollection flds = List1.AllFields;
    for (int i = 0; i < flds.Count; i++)
        TextView1.Text += 
            String.Format(spec, (i + 1), flds[i].Title);
}
Private Sub AllFields_Click(ByVal sender As Object, ByVal e As EventArgs)

    ActiveForm = Form5
    Dim spec As String = "{0}: {1}<br/>"
    Dim flds As IObjectListFieldCollection = List1.AllFields
    Dim i As Integer
    For i = 0 To flds.Count - 1
        TextView1.Text += _
            String.Format(spec, (i + 1), flds(i).Title)
    Next
End Sub

설명

이 컬렉션은 데이터 바인딩 후에만 사용할 수 있습니다. 컬렉션과 Fields 달리 이 컬렉션에서 항목을 추가하거나 제거할 수 없습니다. 기본적으로 이 컬렉션은 자동으로 생성된 필드의 집합입니다. 명시적으로 정의된 필드는 자동으로 생성된 필드 다음에 포함됩니다.

적용 대상

추가 정보