VCCodeDelegate Interface
An object representing a delegate code element (declared with the __delegate keyword).
Namespace: Microsoft.VisualStudio.VCCodeModel
Assembly: Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)
Syntax
'إقرار
<GuidAttribute("7819C290-9D54-4C74-A3E7-5498B35E9F12")> _
Public Interface VCCodeDelegate
'الاستخدام
Dim instance As VCCodeDelegate
[GuidAttribute("7819C290-9D54-4C74-A3E7-5498B35E9F12")]
public interface VCCodeDelegate
[GuidAttribute(L"7819C290-9D54-4C74-A3E7-5498B35E9F12")]
public interface class VCCodeDelegate
[<GuidAttribute("7819C290-9D54-4C74-A3E7-5498B35E9F12")>]
type VCCodeDelegate = interface end
public interface VCCodeDelegate
Remarks
The VCCodeDelegate object represents a delegate code element in a source file, allowing modification or access to information about that specific code element.
ملاحظة
A large part of the functionality of this object is provided by the Visual Studio CodeDelegate object. For more information, see CodeDelegate object.
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 retrieves all delegates of the parent object and displays each of their names.
[Visual Basic]
Sub GetAllDelegates()
Dim vcCM As VCCodeModel
Dim vcDelegate As VCCodeDelegate
vcCM = DTE.Solution.Item(1).CodeModel
For Each vcDelegate in vcCM.Delegates
MsgBox(vcDelegate.DisplayName)
Next
End Sub