Método SetReportHistoryLimit
Especifica o número de instantâneos de um relatório que o servidor de relatório mantém no banco de dados do servidor de relatório.
Namespace: ReportService2005
Assembly: ReportService2005 (em ReportService2005.dll)
Sintaxe
'Declaração
<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 _
)
'Uso
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
)
Parâmetros
- Report
Tipo: System. . :: . .String
O nome do caminho completo do relatório.
- UseSystem
Tipo: System. . :: . .Boolean
Uma expressão Boolean que, quando definida como true, define o limite do histórico de relatório como o limite de histórico de relatório do sistema atual. Um valor false indica que o limite de histórico de relatórios corresponde ao valor fornecido no parâmetro HistoryLimit.
- HistoryLimit
Tipo: System. . :: . .Int32
O número de instantâneos de histórico de relatórios armazenados para o relatório. Os valores podem variar de -1 a 2.147.483.647. Se o valor estiver definido como -1, todos os instantâneos de relatórios serão salvos.
Comentários
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.
Observação |
---|
If the value of HistoryLimit is changed, report history snapshots may be deleted. |