Type Parameters
- T
Return Value
The contextual data as a T if supported, null otherwise.
// Retrieves the SelectionSet from a command that was added and executed from the Attribute Pane Context Menu await QueuedTask.Run(async () => { var selSet = FrameworkApplication.ContextMenuDataContextAs<SelectionSet>(); if (selSet == null) return; int count = selSet.Count; if (count == 0) return; var op = new EditOperation { Name = "Delete context" }; op.Delete(selSet); await op.ExecuteAsync(); });
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)