NI-DAQmx .NET Framework 4.0 API Reference

Table of Contents

IFilteredTypeDescriptor.GetFilteredTypeDescriptor Method (PropertyFilterType, PropertyFilterFlags)

  • Updated2023-02-21
  • 1 minute(s) read
IFilteredTypeDescriptor.GetFilteredTypeDescriptor Method (PropertyFilterType, PropertyFilterFlags)
Returns a list of filtered properties that belong to the Task subobject, according to the specified filtering type and filter flags.

Namespace:  NationalInstruments.DAQmx
Assembly:  NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.40.49302

Syntax

ICustomTypeDescriptor GetFilteredTypeDescriptor(
	PropertyFilterType filterType,
	PropertyFilterFlags filterFlags
)
Function GetFilteredTypeDescriptor ( 
	filterType As PropertyFilterType,
	filterFlags As PropertyFilterFlags
) As ICustomTypeDescriptor

Parameters

filterType
Type: NationalInstruments.DAQmxPropertyFilterType
The type of filtering to perform.
filterFlags
Type: NationalInstruments.DAQmxPropertyFilterFlags
The filtering options.

Return Value

Type: ICustomTypeDescriptor
An ICustomTypeDescriptor that contains the filtered properties.

Exceptions

ExceptionCondition
ArgumentExceptionAn invalid enumeration value was passed as an argument to the function.
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

Property filtering is a mechanism whereby you can programmatically retrieve a list of properties that are applicable to a specific task's subobject, based on the filtering type.

You can call the GetProperties method on the returned ICustomTypeDescriptor in order to access the list of properties as a PropertyDescriptorCollection. When GetProperties(Attribute) is called with an attribute array as a filter, the returned properties are filtered as if they all have the BrowsableAttribute set to .

See Also

Log in to get a better experience