MFCDialogVariableExtender.IDType Property
Gets the type of the dialog variable.
Namespace: Microsoft.VisualStudio.VCCodeModel
Assembly: Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)
Syntax
'Декларация
ReadOnly Property IDType As vsCMMFCDialogVariableIDType
Get
vsCMMFCDialogVariableIDType IDType { get; }
property vsCMMFCDialogVariableIDType IDType {
vsCMMFCDialogVariableIDType get ();
}
abstract IDType : vsCMMFCDialogVariableIDType
function get IDType () : vsCMMFCDialogVariableIDType
Property Value
Type: Microsoft.VisualStudio.VCCodeModel.vsCMMFCDialogVariableIDType
A vsCMMFCDialogVariableIDType enumeration value indicating the dialog variable type.
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.
.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.