SetReportHistoryLimit 方法
指定报表服务器在报表服务器数据库中保留的某个报表的快照的数量。
命名空间: ReportService2005
程序集: ReportService2005(在 ReportService2005.dll 中)
语法
声明
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetReportHistoryLimit", RequestNamespace := "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", _
ResponseNamespace := "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("BatchHeaderValue")> _
Public Sub SetReportHistoryLimit ( _
Report As String, _
UseSystem As Boolean, _
HistoryLimit As Integer _
)
用法
Dim instance As ReportingService2005
Dim Report As String
Dim UseSystem As Boolean
Dim HistoryLimit As Integer
instance.SetReportHistoryLimit(Report, _
UseSystem, HistoryLimit)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetReportHistoryLimit", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("BatchHeaderValue")]
public void SetReportHistoryLimit(
string Report,
bool UseSystem,
int HistoryLimit
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetReportHistoryLimit", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapHeaderAttribute(L"BatchHeaderValue")]
public:
void SetReportHistoryLimit(
String^ Report,
bool UseSystem,
int HistoryLimit
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetReportHistoryLimit", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapHeaderAttribute("BatchHeaderValue")>]
member SetReportHistoryLimit :
Report:string *
UseSystem:bool *
HistoryLimit:int -> unit
public function SetReportHistoryLimit(
Report : String,
UseSystem : boolean,
HistoryLimit : int
)
参数
- Report
类型:System. . :: . .String
报表的完整路径名。
- UseSystem
类型:System. . :: . .Boolean
一个布尔表达式。在该表达式设置为 true 时,将报表历史记录限值设置为当前系统报表历史记录限值。值 false 表示报表历史记录限制值对应于 HistoryLimit 参数中提供的值。
- HistoryLimit
类型:System. . :: . .Int32
为报表存储的报表历史记录快照的最大数目。值的范围介于 -1 到 2,147,483,647。如果将此值设置为 –1,则保存所有报表快照。
注释
The table below shows header and permissions information on this operation.
SOAP Headers |
(In) BatchHeaderValue (Out) ServerInfoHeaderValue |
Required Permissions |
If the UseSystem parameter is set to true, the report server ignores the HistoryLimit parameter.
![]() |
---|
If the value of HistoryLimit is changed, report history snapshots may be deleted. |