共用方式為


MFCDialogVariableExtender.IDType Property

Definition

Gets the type of the dialog variable.

public:
 property Microsoft::VisualStudio::VCCodeModel::vsCMMFCDialogVariableIDType IDType { Microsoft::VisualStudio::VCCodeModel::vsCMMFCDialogVariableIDType get(); };
public:
 property Microsoft::VisualStudio::VCCodeModel::vsCMMFCDialogVariableIDType IDType { Microsoft::VisualStudio::VCCodeModel::vsCMMFCDialogVariableIDType get(); };
[System.Runtime.InteropServices.DispId(2)]
public Microsoft.VisualStudio.VCCodeModel.vsCMMFCDialogVariableIDType IDType { [System.Runtime.InteropServices.DispId(2)] get; }
[<System.Runtime.InteropServices.DispId(2)>]
[<get: System.Runtime.InteropServices.DispId(2)>]
member this.IDType : Microsoft.VisualStudio.VCCodeModel.vsCMMFCDialogVariableIDType
Public ReadOnly Property IDType As vsCMMFCDialogVariableIDType

Property Value

A vsCMMFCDialogVariableIDType enumeration value indicating the dialog variable type.

Attributes

Examples

This example displays the control ID representing each variable of the dialog box implemented by the CAboutDlg class.

' Macro code.  
Sub GetControlIDs()  
    Dim vcCM as VCCodeModel  
    Dim vcClass as VCCodeClass  
    Dim mfcVar as VCCodeVariable  
    vcCM = DTE.Solution.Item(1).CodeModel  
    vcClass = vcCM.Classes.Find("CAboutDlg")  
    For Each vcVar in vcCM.Variables  
        MsgBox(vcVar.Extender("MFCDialogVariable").IDType.ToString)  
    Next  
End Sub  

See How to: Compile Example Code for Visual C++ Code Model Extensibility for information on how to compile and run this sample.

Applies to