GetReportHistoryLimit 方法
返回指定报表的报表历史记录快照限制。
命名空间: ReportService2006
程序集: ReportService2006(在 ReportService2006.dll 中)
语法
声明
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetReportHistoryLimit", RequestNamespace := "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", _
ResponseNamespace := "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
Public Function GetReportHistoryLimit ( _
Report As String, _
<OutAttribute> ByRef IsSystem As Boolean, _
<OutAttribute> ByRef SystemLimit As Integer _
) As Integer
用法
Dim instance As ReportingService2006
Dim Report As String
Dim IsSystem As Boolean
Dim SystemLimit As Integer
Dim returnValue As Integer
returnValue = instance.GetReportHistoryLimit(Report, _
IsSystem, SystemLimit)
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetReportHistoryLimit", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
public int GetReportHistoryLimit(
string Report,
out bool IsSystem,
out int SystemLimit
)
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetReportHistoryLimit", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
public:
int GetReportHistoryLimit(
String^ Report,
[OutAttribute] bool% IsSystem,
[OutAttribute] int% SystemLimit
)
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetReportHistoryLimit", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
member GetReportHistoryLimit :
Report:string *
IsSystem:bool byref *
SystemLimit:int byref -> int
public function GetReportHistoryLimit(
Report : String,
IsSystem : boolean,
SystemLimit : int
) : int
参数
- Report
类型:System. . :: . .String
报表的完全限定 URL,其中包括文件名和 .rdl 文件扩展名。
- IsSystem
类型:System. . :: . .Boolean%
一个布尔值表达式,如果报表快照策略设置为与系统限制值相等,则该表达式返回 true。如果报表有自己的报表历史记录限值,则该参数返回 false。
- SystemLimit
类型:System. . :: . .Int32%
系统报表历史记录限值。
返回值
类型:System. . :: . .Int32
下表显示了有关此操作的标头和权限信息。
SOAP 标头 |
(Out) ServerInfoHeaderValue |
所需的权限 |
ViewListItems()()()() |
一个表示给定报表的历史记录限制的整数值。值介于 -1 到 2,147,483,647 之间。如果将此值设置为 –1,则保存所有报表历史记录快照。