Export (0) Print
Expand All
Expand Minimize

ReportingService2010.GetItemParameters Method

Returns parameter properties for a specified item. This method can also be used to validate parameter values against parameters for a specified item.

Namespace:  ReportService2010
Assembly:  ReportService2010 (in ReportService2010.dll)

public function GetItemParameters(
	ItemPath : String, 
	HistoryID : String, 
	ForRendering : boolean, 
	Values : ParameterValue[], 
	Credentials : DataSourceCredentials[]
) : ItemParameter[]

Parameters

ItemPath
Type: String
The fully qualified URL of the item including the file name and, in SharePoint mode, the extension.
HistoryID
Type: String
The ID of the item history snapshot. Set the ForRendering parameter to a value of true in order to retrieve parameter properties for an item history snapshot. Set the value to a null reference (Nothing in Visual Basic) (Nothing in Visual Basic) if you are retrieving parameters for an item that is not an item history snapshot.
ForRendering
Type: Boolean
A Boolean expression that indicates how the parameter values are to be used. If set to a value of true, parameter properties that are returned are based on the parameter data that was used during the execution of the item.
Values
Type: ReportService2010.ParameterValue[]
The parameter values (ParameterValue objects) that can be validated against the parameters of an item that is managed by the report server.
Credentials
Type: ReportService2010.DataSourceCredentials[]
The data source credentials (DataSourceCredentials objects) that can be used to validate query parameters.

Return Value

Type: ReportService2010.ItemParameter[]
An array of ItemParameter objects that lists the parameters for the item.

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

SOAP Header Usage

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Native Mode Required Permissions

ReadProperties

SharePoint Mode Required Permissions

ViewListItems

If the execution setting for the item is Snapshot, the parameter metadata that is returned is the data that was used when the item history snapshot was created. If the execution setting for the item is Live, the parameter metadata returned represents the parameter data that is associated with the specified item.

If you provide a value for the HistoryID parameter and set the ForRendering parameter value to true, the parameter metadata returned represents the parameter data that was used when the item history snapshot was created. The value supplied for HistoryID is ignored if ForRendering is set to false.If ForRendering is false, the parameter metadata returned represents the parameter data that is currently associated with the specified item.

If any parameters values are based on a query and you are interested in returning the query-based parameters' valid values list, set ForRendering to true. In addition, for query-based parameters, you must pass in all of the credential information required to return the query parameters.

When using the GetItemParameters method to validate parameters, the Values parameter is required.

If parameters do not exist for the given item, an empty ItemParameter array is returned.

To compile this code example, you must reference the Reporting Services WSDL and import certain namespaces. For more information, see Compiling and Running Code Examples. The following code example uses the GetItemParameters method to retrieve a list of parameter metadata for a report and then displays the name of each parameter:

No code example is currently available or this language may not be supported.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft