다음을 통해 공유


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
)

매개 변수

  • UseSystem
    유형: System. . :: . .Boolean
    true 로 설정하면 현재 시스템 보고서 기록 제한에 보고서 기록 제한을 설정하는 Boolean 식입니다. 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

UpdatePolicy

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.