IFsrmReportManager::SetDefaultFilter method (fsrmreports.h)
Sets the default report filter value to use with the specified report type.
Syntax
HRESULT SetDefaultFilter(
[in] FsrmReportType reportType,
[in] FsrmReportFilter filter,
[in] VARIANT filterValue
);
Parameters
[in] reportType
The report type. For possible values, see the FsrmReportType enumeration.
[in] filter
The report filter. For possible values, see the FsrmReportFilter enumeration.
[in] filterValue
The default report filter value.
Return value
The method returns the following return values.
Remarks
This value is used if the IFsrmReport::SetFilter method was not called to specify a filter value for the report.
Note that each report type supports a specific set of filters. To determine if the filter is valid, call the IFsrmReportManager::IsFilterValidForReportType method.
The following list lists the variant types associated with the FsrmReportFilter enumeration values used for the filterValue parameter.
Filter type | Variant type |
---|---|
FsrmReportFilter_FileGroups | VT_BSTR | VT_ARRAY. Set the parray member of the variant. |
FsrmReportFilter_MinAgeDays | VT_I4. Set the lVal member of the variant. |
FsrmReportFilter_MaxAgeDays | VT_I4. Set the lVal member of the variant. |
FsrmReportFilter_MinQuotaUsage | VT_I4. Set the lVal member of the variant. |
FsrmReportFilter_MinSize | VT_I8. Set the llVal member of the variant. |
FsrmReportFilter_NamePattern | VT_BSTR. Set the bstrVal member of the variant. |
FsrmReportFilter_Owners | VT_BSTR | VT_ARRAY. Set the parray member of the variant. |
FsrmReportFilter_Property | VT_BSTR. Set the bstrVal member of the variant. |
The default filter values are used for report actions.
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | fsrmreports.h (include FsrmReports.h, FsrmTlb.h) |
DLL | SrmSvc.dll |