Поделиться через


ReportingService2010.SetItemHistoryOptions Метод

Определение

Устанавливает параметры журнала элементов, указанные при создании моментального снимка журнала элементов для указанного элемента каталога. Этот метод применим к элементам типа 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)

Параметры

ItemPath
String

Полный URL-адрес элемента, включая имя файла, а также (в режиме интеграции с SharePoint) расширение.

EnableManualSnapshotCreation
Boolean

Показывает, можно ли создавать моментальные снимки журнала элемента с помощью метода CreateItemHistorySnapshot(String, Warning[]) веб-службы. Значение по умолчанию — true.

KeepExecutionSnapshots
Boolean

Показывает, собираются ли снимки состояния выполнения элемента для журнала элемента. Значение по умолчанию — false.

Item
ScheduleDefinitionOrReference

Объект ScheduleDefinition или ScheduleReference, представляющий сведения о расписании для моментального снимка журнала элемента. Если моментальный снимок журнала элемента не создается по расписанию, передайте в этом параметре объект NoSchedule.

Атрибуты

Комментарии

В следующей таблице показаны сведения о заголовках и разрешениях для этой операции.

Использование заголовка SOAP (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
Необходимые разрешения в собственном режиме UpdatePolicy И CreateSnapshot
Необходимые разрешения в режиме Интеграции с SharePoint <xref:Microsoft.SharePoint.SPBasePermissions.EditListItems>

Применяется к