Share via


GetItemHistoryOptions Método

Devuelve la opción de la instantánea del historial de elementos y las propiedades generadas para un elemento de catálogo. Este método se aplica al tipo de elemento Report.

Espacio de nombres:  ReportService2010
Ensamblado:  ReportService2010 (en ReportService2010.dll)

Sintaxis

'Declaración
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetItemHistoryOptions", 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)> _
Public Function GetItemHistoryOptions ( _
    ItemPath As String, _
    <OutAttribute> ByRef KeepExecutionSnapshots As Boolean, _
    <OutAttribute> ByRef Item As ScheduleDefinitionOrReference _
) As Boolean
'Uso
Dim instance As ReportingService2010
Dim ItemPath As String
Dim KeepExecutionSnapshots As Boolean
Dim Item As ScheduleDefinitionOrReference
Dim returnValue As Boolean

returnValue = instance.GetItemHistoryOptions(ItemPath, _
    KeepExecutionSnapshots, Item)
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetItemHistoryOptions", 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)]
public bool GetItemHistoryOptions(
    string ItemPath,
    out bool KeepExecutionSnapshots,
    out ScheduleDefinitionOrReference Item
)
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetItemHistoryOptions", 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)]
public:
bool GetItemHistoryOptions(
    String^ ItemPath, 
    [OutAttribute] bool% KeepExecutionSnapshots, 
    [OutAttribute] ScheduleDefinitionOrReference^% Item
)
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetItemHistoryOptions", 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)>]
member GetItemHistoryOptions : 
        ItemPath:string * 
        KeepExecutionSnapshots:bool byref * 
        Item:ScheduleDefinitionOrReference byref -> bool 
public function GetItemHistoryOptions(
    ItemPath : String, 
    KeepExecutionSnapshots : boolean, 
    Item : ScheduleDefinitionOrReference
) : boolean

Parámetros

  • ItemPath
    Tipo: System. . :: . .String
    Dirección URL completa del elemento, incluidos el nombre de archivo y la extensión, en modo de SharePoint.
  • KeepExecutionSnapshots
    Tipo: System. . :: . .Boolean%
    [salida] Expresión Boolean que indica si se recopila el historial de elementos para el elemento. El valor predeterminado es false.

Valor devuelto

Tipo: System. . :: . .Boolean
true si se recopila el historial del elemento; en caso contrario, false.

Comentarios

The table below shows header and permissions information on this operation.

SOAP Header Usage

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Native Mode Required Permissions

ReadPolicy

SharePoint Mode Required Permissions

ViewListItems()()()()