10-24-2021
11:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-24-2021
11:41 PM
Hello,
CommandTypesEnum is used as Enum with Flags attribute (implemented in background but not explicitly). In this case you can use it as combination of individual values. For more information see this article
https://docs.microsoft.com/en-us/dotnet/api/system.flagsattribute?view=net-5.0
Here is sample use. This code works, but compiler provides a warning, because the [Flags] attribute is missing in Interop implementation.
var disabledCommands = CommandTypesEnum.kFileOperationsCmdType | CommandTypesEnum.kFilePropertyEditCmdType;