ReportingService2010.SetItemHistoryLimit(String, Boolean, Int32) 메서드

정의

보고서 서버가 유지하는 항목의 스냅샷 수를 지정합니다. 이 메서드는 Report 항목 유형에 적용됩니다.

public:
 void SetItemHistoryLimit(System::String ^ ItemPath, bool UseSystem, int HistoryLimit);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemHistoryLimit", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
public void SetItemHistoryLimit (string ItemPath, bool UseSystem, int HistoryLimit);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemHistoryLimit", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)>]
[<System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")>]
[<System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
member this.SetItemHistoryLimit : string * bool * int -> unit
Public Sub SetItemHistoryLimit (ItemPath As String, UseSystem As Boolean, HistoryLimit As Integer)

매개 변수

ItemPath
String

파일 이름과 SharePoint 모드에서는 확장명을 포함하는 항목의 정규화된 URL입니다.

UseSystem
Boolean

Boolean로 설정하면 현재 시스템 항목 기록 한도에 항목 기록 한도를 설정하는 true 식입니다. 값은 false 항목 기록 제한이 매개 변수에 제공된 값에 HistoryLimit 해당한다는 것을 나타냅니다.

HistoryLimit
Int32

항목에 대해 저장할 항목 기록 스냅샷의 수입니다. 값은 -1에서 2,147,483,647 사이입니다. 이 값이 –1로 설정되면 모든 항목 스냅숏이 저장됩니다.

특성

설명

다음 표에서는 이 작업에 대한 헤더 및 사용 권한 정보를 보여 줍니다.

SOAP 헤더 사용 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
기본 모드 필수 권한 UpdatePolicy
SharePoint 모드 필수 권한 <xref:Microsoft.SharePoint.SPBasePermissions.EditListItems>

이 메서드는 항목 유형만 지원합니다 Report . 보고서 이외의 항목의 URL을 지정하면 메서드가 예외 문자열 "잘못된 항목 유형"으로 예외를 throw합니다.

매개 변수가 로 UseSystem 설정된 true경우 보고서 서버는 매개 변수를 HistoryLimit 무시합니다.

참고

HistoryLimit 이 변경되면 항목 기록 스냅샷이 삭제될 수 있습니다.

적용 대상