Método SetItemHistoryOptions
Define opções de histórico de item que especificam quando um instantâneo de histórico de item é criado para um item de catálogo especificado. Esse método se aplica ao tipo de item Report.
Namespace: ReportService2010
Assembly: ReportService2010 (em ReportService2010.dll)
Sintaxe
'Declaração
<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 _
)
'Uso
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
)
Parâmetros
- ItemPath
Tipo: System. . :: . .String
A URL totalmente qualificada do item, incluindo o nome do arquivo e a extensão no modo do SharePoint.
- EnableManualSnapshotCreation
Tipo: System. . :: . .Boolean
Indica se os instantâneos de histórico de itens podem ser criados pelo método de serviço Web CreateItemHistorySnapshot. O valor padrão é true.
- KeepExecutionSnapshots
Tipo: System. . :: . .Boolean
Indica se os instantâneos de execução de itens são coletados para o histórico de itens. O valor padrão é false.
- Item
Tipo: ReportService2010. . :: . .ScheduleDefinitionOrReference
O objeto ScheduleDefinition ou ScheduleReference que representa as informações de agenda do instantâneo de histórico de itens. Se o instantâneo de histórico de itens não for criado de acordo com uma agenda, transmita um objeto NoSchedule para esse parâmetro.
Comentários
The table below shows header and permissions information on this operation.
SOAP Header Usage |
(Out) ServerInfoHeaderValue |
Native Mode Required Permissions |
|
SharePoint Mode Required Permissions |
EditListItems()()()() |