Share via


ReportingService2010.SetItemHistoryOptions Metodo

Definizione

Imposta le opzioni della cronologia di un elemento che specificano il momento in cui uno snapshot della cronologia viene creato per un elemento del catalogo specificato. Questo metodo si applica al tipo di elemento Report.

public:
 void SetItemHistoryOptions(System::String ^ ItemPath, bool EnableManualSnapshotCreation, bool KeepExecutionSnapshots, ReportService2010::ScheduleDefinitionOrReference ^ Item);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemHistoryOptions", 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 SetItemHistoryOptions (string ItemPath, bool EnableManualSnapshotCreation, bool KeepExecutionSnapshots, ReportService2010.ScheduleDefinitionOrReference Item);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemHistoryOptions", 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.SetItemHistoryOptions : string * bool * bool * ReportService2010.ScheduleDefinitionOrReference -> unit
Public Sub SetItemHistoryOptions (ItemPath As String, EnableManualSnapshotCreation As Boolean, KeepExecutionSnapshots As Boolean, Item As ScheduleDefinitionOrReference)

Parametri

ItemPath
String

URL completo dell'elemento, inclusi il nome file e, in modalità SharePoint, l'estensione.

EnableManualSnapshotCreation
Boolean

Indica se gli snapshot della cronologia dell'elemento possono essere creati tramite il metodo CreateItemHistorySnapshot(String, Warning[]) del servizio Web. Il valore predefinito è true.

KeepExecutionSnapshots
Boolean

Indica se gli snapshot di esecuzione dell'elemento vengono raccolti per la cronologia dell'elemento. Il valore predefinito è false.

Item
ScheduleDefinitionOrReference

Oggetto ScheduleDefinition o ScheduleReference che rappresenta le informazioni sulla pianificazione per lo snapshot della cronologia dell'elemento. Se lo snapshot della cronologia dell'elemento non viene creato in base a una pianificazione, passare un oggetto NoSchedule per questo parametro.

Attributi

Commenti

Nella tabella seguente vengono mostrate le informazioni sull'intestazione e sulle autorizzazioni relative a questa operazione.

Utilizzo intestazione SOAP (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
Autorizzazioni necessarie in modalità nativa UpdatePolicy E CreateSnapshot
Autorizzazioni necessarie per la modalità SharePoint <xref:Microsoft.SharePoint.SPBasePermissions.EditListItems>

Si applica a