GetItemHistoryLimit 方法

返回指定目录项的项历史记录快照限制。此方法适用于报表项类型。

命名空间:  ReportService2010
程序集:  ReportService2010(在 ReportService2010.dll 中)

语法

声明
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetItemHistoryLimit", RequestNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",  _
    ResponseNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetItemHistoryLimit ( _
    ItemPath As String, _
    <OutAttribute> ByRef IsSystem As Boolean, _
    <OutAttribute> ByRef SystemLimit As Integer _
) As Integer
用法
Dim instance As ReportingService2010
Dim ItemPath As String
Dim IsSystem As Boolean
Dim SystemLimit As Integer
Dim returnValue As Integer

returnValue = instance.GetItemHistoryLimit(ItemPath, _
    IsSystem, SystemLimit)
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetItemHistoryLimit", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public int GetItemHistoryLimit(
    string ItemPath,
    out bool IsSystem,
    out int SystemLimit
)
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetItemHistoryLimit", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
public:
int GetItemHistoryLimit(
    String^ ItemPath, 
    [OutAttribute] bool% IsSystem, 
    [OutAttribute] int% SystemLimit
)
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetItemHistoryLimit", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
member GetItemHistoryLimit : 
        ItemPath:string * 
        IsSystem:bool byref * 
        SystemLimit:int byref -> int 
public function GetItemHistoryLimit(
    ItemPath : String, 
    IsSystem : boolean, 
    SystemLimit : int
) : int

参数

  • ItemPath
    类型:System. . :: . .String
    项的完全限定 URL,其中包括文件名(在 SharePoint 模式下,还有扩展名)。
  • IsSystem
    类型:System. . :: . .Boolean%
    一个布尔值表达式,如果项快照策略设置为与系统限制值相等,则该表达式返回 true。如果项有自己的项历史记录限制值,则该参数返回 false。

返回值

类型:System. . :: . .Int32
一个表示给定项的历史记录限制的整数值。值介于 -1 到 2,147,483,647 之间。如果将该值设置为 –1,则保存所有的项历史记录快照。

注释

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

SOAP Header Usage

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Native Mode Required Permissions

ReadPolicy

SharePoint Mode Required Permissions

ViewListItems()()()()