ReportingService2010.SetItemHistoryOptions Método

Definición

Establece opciones del historial de elementos que especifican cuándo se crea una instantánea del historial de elementos para un elemento de catálogo especificado. Este método se aplica al tipo de 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)

Parámetros

ItemPath
String

Dirección URL completa del elemento, incluidos el nombre de archivo y la extensión, en modo de SharePoint.

EnableManualSnapshotCreation
Boolean

Indica si las instantáneas del historial de elementos se pueden crear a través del método CreateItemHistorySnapshot(String, Warning[]) del servicio web. El valor predeterminado es true.

KeepExecutionSnapshots
Boolean

Indica si las instantáneas de ejecución de elementos se recopila para el historial de elementos. El valor predeterminado es false.

Item
ScheduleDefinitionOrReference

Objeto ScheduleDefinition o ScheduleReference que representa la información de programación para la instantánea del historial de elementos. Si la instantánea del historial del elemento no se crea según una programación, pase un objeto NoSchedule para este parámetro.

Atributos

Comentarios

En la siguiente tabla se muestra la información de encabezado y de permisos de esta operación.

Uso de encabezados SOAP (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
Permisos necesarios en modo nativo UpdatePolicy y CreateSnapshot
Permisos necesarios en modo de SharePoint <xref:Microsoft.SharePoint.SPBasePermissions.EditListItems>

Se aplica a