CodeEvent.FullName 属性

定义

获取指定对象的完全限定名称 CodeEvent

public:
 property System::String ^ FullName { System::String ^ get(); };
public:
 property Platform::String ^ FullName { Platform::String ^ get(); };
[System.Runtime.InteropServices.DispId(3)]
public string FullName { [System.Runtime.InteropServices.DispId(3)] get; }
[<System.Runtime.InteropServices.DispId(3)>]
[<get: System.Runtime.InteropServices.DispId(3)>]
member this.FullName : string
Public ReadOnly Property FullName As String

属性值

String

包含指定对象的完全限定名的字符串 CodeEvent

属性

示例

下面的示例演示如何使用 FullName 属性。

public static void FullName(EnvDTE80.DTE2 dte)  
{  
    TextSelection objTextSel;  
    EnvDTE80.CodeEvent codeEvent;  
    objTextSel = (TextSelection)dte.ActiveDocument.Selection;  
    codeEvent = (EnvDTE80.CodeEvent)objTextSel.ActivePoint.get_CodeElement(vsCMElement.vsCMElementEvent);  

    MessageBox.Show("\nFullName property: " +  
                    codeEvent.FullName, "Testing CodeEvent");  
}  

注解

完全限定名称包括包含事件对象和事件对象名称的类的名称。

备注

在进行了某些类型的编辑之后,代码模型元素(例如类、结构、函数、特性、委托等)的值可能变为非确定性的,这意味着不能确定它们的值始终保持不变。

适用于