共用方式為


ReportExecutionService.Sort 方法

Applies or removes a sort for the execution based on a user sort action.

命名空間:  ReportExecution2005
組件:  ReportExecution2005 (在 ReportExecution2005.dll 中)

語法

'宣告
Public Function Sort ( _
    SortItem As String, _
    Direction As SortDirectionEnum, _
    Clear As Boolean, _
    <OutAttribute> ByRef ReportItem As String, _
    <OutAttribute> ByRef NumPages As Integer _
) As Integer
'用途
Dim instance As ReportExecutionService 
Dim SortItem As String 
Dim Direction As SortDirectionEnum 
Dim Clear As Boolean 
Dim ReportItem As String 
Dim NumPages As Integer 
Dim returnValue As Integer 

returnValue = instance.Sort(SortItem, _
    Direction, Clear, ReportItem, NumPages)
public int Sort(
    string SortItem,
    SortDirectionEnum Direction,
    bool Clear,
    out string ReportItem,
    out int NumPages
)
public:
int Sort(
    String^ SortItem, 
    SortDirectionEnum Direction, 
    bool Clear, 
    [OutAttribute] String^% ReportItem, 
    [OutAttribute] int% NumPages
)
member Sort : 
        SortItem:string * 
        Direction:SortDirectionEnum * 
        Clear:bool * 
        ReportItem:string byref * 
        NumPages:int byref -> int
public function Sort(
    SortItem : String, 
    Direction : SortDirectionEnum, 
    Clear : boolean, 
    ReportItem : String, 
    NumPages : int
) : int

參數

  • SortItem
    型別:System.String
    The ID of the report item on which to sort.
  • Clear
    型別:System.Boolean
    A Boolean value that indicates whether all other existing sorts should be cleared. The default is false.
  • ReportItem
    型別:System.String%
    [out] The ID of the item on the page used for positioning in the viewing area.
  • NumPages
    型別:System.Int32%
    [out] The new total number of pages in the report.

傳回值

型別:System.Int32
An integer value containing the new page number on which the item passed in the ReportItem parameter falls.

備註

The table below shows header and permissions information on this operation.

SOAP Header Usage

(In) TrustedUserHeaderValue

(In) ExecutionHeaderValue

(Out) ServerInfoHeaderValue

Native Mode Required Permissions

None

SharePoint Mode Required Permissions

None

請參閱

參考

ReportExecutionService 類別

ReportExecution2005 命名空間