다음을 통해 공유


SetItemHistoryOptions 메서드

지정된 카탈로그 항목에 대해 항목 기록 스냅숏을 만드는 시간을 지정하는 항목 기록 옵션을 설정합니다. 이 메서드는 Report 항목 유형에 적용됩니다.

네임스페이스:  ReportService2010
어셈블리:  ReportService2010(ReportService2010.dll)

구문

‘선언
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemHistoryOptions", RequestNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",  _
    ResponseNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
Public Sub SetItemHistoryOptions ( _
    ItemPath As String, _
    EnableManualSnapshotCreation As Boolean, _
    KeepExecutionSnapshots As Boolean, _
    Item As ScheduleDefinitionOrReference _
)
‘사용 방법
Dim instance As ReportingService2010
Dim ItemPath As String
Dim EnableManualSnapshotCreation As Boolean
Dim KeepExecutionSnapshots As Boolean
Dim Item As ScheduleDefinitionOrReference

instance.SetItemHistoryOptions(ItemPath, _
    EnableManualSnapshotCreation, KeepExecutionSnapshots, _
    Item)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemHistoryOptions", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
public void SetItemHistoryOptions(
    string ItemPath,
    bool EnableManualSnapshotCreation,
    bool KeepExecutionSnapshots,
    ScheduleDefinitionOrReference Item
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemHistoryOptions", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
public:
void SetItemHistoryOptions(
    String^ ItemPath, 
    bool EnableManualSnapshotCreation, 
    bool KeepExecutionSnapshots, 
    ScheduleDefinitionOrReference^ Item
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemHistoryOptions", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
member SetItemHistoryOptions : 
        ItemPath:string * 
        EnableManualSnapshotCreation:bool * 
        KeepExecutionSnapshots:bool * 
        Item:ScheduleDefinitionOrReference -> unit 
public function SetItemHistoryOptions(
    ItemPath : String, 
    EnableManualSnapshotCreation : boolean, 
    KeepExecutionSnapshots : boolean, 
    Item : ScheduleDefinitionOrReference
)

매개 변수

  • ItemPath
    유형: System. . :: . .String
    파일 이름과 SharePoint 모드에서는 확장명을 포함하는 항목의 정규화된 URL입니다.
  • KeepExecutionSnapshots
    유형: System. . :: . .Boolean
    항목 기록에 대해 항목 실행 스냅숏이 수집되는지 여부를 나타냅니다. 기본값은 false입니다.

주의

The table below shows header and permissions information on this operation.

SOAP Header Usage

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Native Mode Required Permissions

UpdatePolicy AND CreateSnapshot

SharePoint Mode Required Permissions

EditListItems()()()()