VCCodeModel.DialogClasses Property
Visual Studio 2012
Gets a collection of dialog classes.
Assembly: Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)
DialogClasses returns the dialog classes found in the VCCodeModel object. If a filter is used, only classes that match the specified resource ID are returned.
See How to: Compile Example Code for Visual C++ Code Model Extensibility for information on how to compile and run this sample.
This example adds a comment to all dialog classes in the project.
Sub AddCommentToDialogClasses() Dim codeModel As VCCodeModel codeModel = DTE.Solution.Item(1).CodeModel Dim codeClass As VCCodeClass For Each codeClass In codeModel.DialogClasses codeClass.Comment += " This is a Dialog class" Next End Sub
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.