Gets a value that indicates whether the filter is enabled or not.
public bool GetEnable(string Name)
Public Function GetEnable( _ByVal Name As String _) As Boolean
public:bool GetEnable(String^ Name)
Name
A string that shows either the Display Name or Friendly Name of the filter. It is best to use "Display Name" since it is unique and no two filters can have the same Display Name. On the contrary, two or more filters can have have the same Friendly Name. When two or more filters have the same Friendly name, this function works on the first filter it internally enumerates having the specified friendly name.
true if the filter is enabled or its merit is more than 0x200000 (MERIT_DO_NOT_USE); false, otherwise.
For more information, refer to the Microsoft documentation for DirectShow Merits https://msdn.microsoft.com/en-us/library/dd390674.aspx, https://msdn.microsoft.com/en-us/library/aa920889.aspx, and https://blogs.msmvps.com/chrisl/2005/03/31/understanding-directshow-merits/. A Display Name uniquely identifies a DirectShow filter (or any filter). Display names for software filters have the following format: @device:sw:GUID\\GUID, example: Microsoft's “MPEG-2 Splitter” display name is: @device:sw:{083863F1-70DE-11D0-BD40-00A0C911CE86}\\{3AE86B20-7BE8-11D1-ABE6-00A0C905F375}. A Friendly Name is not unique and one or more filters can have the same name. However, it is ideal for presenting a descriptive name in user interfaces. For example, the Friendly Name for Microsoft's MPEG-2 Splitter is "MPEG-2 Splitter"
using Leadtools;using Leadtools.Multimedia;using LeadtoolsMultimediaExamples.Fixtures;public bool _result = false;public ConvertCtrlForm _form = new ConvertCtrlForm();public void FilterEnumEnableExample(){string LeadAudioSpdifPassthru = "@device:sw:{083863F1-70DE-11D0-BD40-00A0C911CE86}\\{668B161A-9AB4-472D-8A48-550F7BD54F15}";FilterEnum filterEnum = new FilterEnum();try{// Get the Enable value for the LEAD Audio SPDIF Passthru filterbool isEnable = filterEnum.GetEnable(LeadAudioSpdifPassthru);// Toggle the value and set it to a new variablebool isEnableNew = !isEnable;// Set the new value to the LEAD Audio SPDIF Passthru filterfilterEnum.SetEnable(LeadAudioSpdifPassthru, isEnableNew);// Get the Enable value againisEnable = filterEnum.GetEnable(LeadAudioSpdifPassthru);// Check and see whether the value has been set correctly_result = (isEnable == isEnableNew) ? true : false;}catch (Exception){_result = false;}}
Imports LeadtoolsImports Leadtools.MultimediaImports LeadtoolsMultimediaExamples.FixturesPublic _result As Boolean = FalsePublic _form As ConvertCtrlForm = New ConvertCtrlForm()Public Sub FilterEnumEnableExample()TryDim LeadAudioSpdifPassthru As String = "@device:sw:{083863F1-70DE-11D0-BD40-00A0C911CE86}\{668B161A-9AB4-472D-8A48-550F7BD54F15}"' Create an object instance of FilterEnumDim filterEnum As FilterEnum = New FilterEnum' Get the Enable value of LEAD Audio SPDIF Passthru filterDim isEnable As Boolean = filterEnum.GetEnable(LeadAudioSpdifPassthru)' Toggle the value and set it to a new variableDim isEnableNew As Boolean = Not isEnable' Set the new value to LEAD Audio SPDIF Passthru filterfilterEnum.SetEnable(LeadAudioSpdifPassthru, isEnableNew)' Get the Enable value againisEnable = filterEnum.GetEnable(LeadAudioSpdifPassthru)' Check and see if the value has been set correctlyIf isEnable = isEnableNew Then_result = TrueElse_result = FalseEnd IfCatch e1 As Exception_result = FalseEnd TryEnd Sub
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
