Метод SetReportHistoryLimit
Указывает количество моментальных снимков отчета, хранимых сервером отчетов в базе данных.
Пространство имен: ReportService2006
Сборка: ReportService2006 (в ReportService2006.dll)
Синтаксис
'Декларация
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/SetReportHistoryLimit", 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)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
Public Sub SetReportHistoryLimit ( _
Report As String, _
UseSystem As Boolean, _
HistoryLimit As Integer _
)
'Применение
Dim instance As ReportingService2006
Dim Report As String
Dim UseSystem As Boolean
Dim HistoryLimit As Integer
instance.SetReportHistoryLimit(Report, _
UseSystem, HistoryLimit)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/SetReportHistoryLimit", 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)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
public void SetReportHistoryLimit(
string Report,
bool UseSystem,
int HistoryLimit
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/SetReportHistoryLimit", 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)]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
public:
void SetReportHistoryLimit(
String^ Report,
bool UseSystem,
int HistoryLimit
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/SetReportHistoryLimit", 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)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
member SetReportHistoryLimit :
Report:string *
UseSystem:bool *
HistoryLimit:int -> unit
public function SetReportHistoryLimit(
Report : String,
UseSystem : boolean,
HistoryLimit : int
)
Параметры
- Report
Тип: System. . :: . .String
Полный URL-адрес отчета, включая имя файла и расширение RDL.
- UseSystem
Тип: System. . :: . .Boolean
Выражение типа 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 |
(Out) ServerInfoHeaderValue |
Required Permissions |
EditListItems()()()() |
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 might be deleted. |