Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the ID of the control representing the dialog member variable.
Namespace: Microsoft.VisualStudio.VCCodeModel
Assembly: Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)
Syntax
'Declaration
ReadOnly Property ControlID As String
'Usage
Dim instance As MFCDialogVariableExtender
Dim value As String
value = instance.ControlID
string ControlID { get; }
property String^ ControlID {
String^ get ();
}
function get ControlID () : String
Property Value
Type: System.String
A string representing the control ID.
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").ControlID)
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.
See Also
Reference
MFCDialogVariableExtender Interface