MFCDialogVariableExtender.IDType Eigenschaft

Definition

Ruft den Typ der Dialogfeld Variablen ab.

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

Eigenschaftswert

vsCMMFCDialogVariableIDType

Ein- vsCMMFCDialogVariableIDType Enumerationswert, der den Typ des Dialog Felds angibt.

Attribute

Beispiele

Dieses Beispiel zeigt die Steuerelement-ID, die jede Variable des Dialog Felds darstellt, das von der-Klasse implementiert wird CAboutDlg .

' 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  

Weitere Informationen zum Kompilieren und Ausführen dieses Beispiels finden Sie unter Gewusst wie: Kompilieren von Beispielcode für die Erweiterbarkeit von Visual C++-Code Modellen .

Gilt für