QueryByAttribute.TopCount 속성

Gets or sets the number of rows to be returned.

네임스페이스: Microsoft.Xrm.Sdk.Query
어셈블리: Microsoft.Xrm.Sdk(Microsoft.Xrm.Sdk.dll에 있음)

구문

‘선언
<DataMemberAttribute(Order:=50)> _
Public Property TopCount As Nullable(Of Integer)
[DataMemberAttribute(Order=50)] 
public Nullable<int> TopCount { get; set; }

속성 값

Type: Int32
The number of rows to be returned.

예제

public void TestQueryByAttributeWithTopCount()
{
         QueryByAttribute query = new QueryByAttribute();
         query.EntityName = "Account";
         query.ColumnSet = new Microsoft.Xrm.Sdk.Query.ColumnSet(new string[] { "name" });
         query.AddAttributeValue("address1_city", "seattle");
         query.TopCount = 3;
}

설명

When specified, this limits the number rows returned in a query result set to the specified number of rows.

A query can contain either PageInfo or TopCount property values. If both are specified, an error will be thrown.

스레드 보안

이 형식의 공용 정적(Visual Basic에서는 Shared) 구성원은 스레드로부터 안전합니다. 인스턴스 구성원은 스레드로부터 안전하지 않을 수 있습니다.

플랫폼

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

Windows Server 2008,Windows Server 2012,Windows 7

Change History

참고 항목

참조

QueryByAttribute 클래스
QueryByAttribute 구성원
Microsoft.Xrm.Sdk.Query 네임스페이스

Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.