Metodo SetItemHistoryOptions
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.
Spazio dei nomi ReportService2010
Assembly: ReportService2010 (in ReportService2010.dll)
Sintassi
'Dichiarazione
<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 _
)
'Utilizzo
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
)
Parametri
- ItemPath
Tipo: System. . :: . .String
URL completo dell'elemento, inclusi il nome file e, in modalità SharePoint, l'estensione.
- EnableManualSnapshotCreation
Tipo: System. . :: . .Boolean
Indica se gli snapshot della cronologia dell'elemento possono essere creati tramite il metodo CreateItemHistorySnapshot del servizio Web. Il valore predefinito è true.
- KeepExecutionSnapshots
Tipo: System. . :: . .Boolean
Indica se gli snapshot di esecuzione dell'elemento vengono raccolti per la cronologia dell'elemento. Il valore predefinito è false.
- Item
Tipo: ReportService2010. . :: . .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.
Osservazioni
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()()()() |