我正在使用ReportService2005从SSRS返回参数列表。其中一些参数是预先填充和隐藏的。
有没有办法找出参数是否隐藏,我查看了ReportParameter类的documentation,找不到任何隐藏引用。
我使用以下代码来获取参数
bool forRendering = true;
string historyID = null;
ParameterValue[] values = null;
DataSourceCredentials[] credentials = null;
ReportParameter[] parameters = null;
ReportingService2005SoapClient svc = new ReportingService2005SoapClient();
svc.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;
svc.GetReportParameters(reportName, historyID, forRendering, values, credentials, out parameters);
SSRSParameter[] params = (from p in parameters
select new SSRSParameter()
{
Name = p.Name,
Type = p.Type,
MultiSelect = p.MultiValue,
Dependencies = p.Dependencies,
CurrentValue = p.DefaultValues,
}).ToArray();
return params;