Gets a collection of dialog classes.
Namespace:  Microsoft.VisualStudio.VCCodeModel
Assembly:  Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)
Syntax
声明
ReadOnly Property DialogClasses ( _
    Filter As String _
) As CodeElements
    Get
CodeElements this[
    string Filter
] { get; }
property CodeElements^ DialogClasses[[InAttribute] String^ Filter] {
    CodeElements^ get ([InAttribute] String^ Filter);
}
abstract DialogClasses : CodeElements
JScript does not support indexed properties.
Parameters
- Filter
 Type: System.String
 Optional. If supplied, this returns only those dialog classes whose resource ID matches the value of Filter.
Property Value
Type: EnvDTE.CodeElements
A CodeElements collection.
Remarks
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.
Examples
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
.NET Framework Security
- 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.