允许对源文件中的编程构造进行访问。
命名空间:  EnvDTE80
程序集:  EnvDTE80(在 EnvDTE80.dll 中)
语法
声明
<GuidAttribute("A65964DF-3A07-45EB-882A-DD04602016B9")> _
Public Interface FileCodeModel2 _
    Inherits FileCodeModel
[GuidAttribute("A65964DF-3A07-45EB-882A-DD04602016B9")]
public interface FileCodeModel2 : FileCodeModel
[GuidAttribute(L"A65964DF-3A07-45EB-882A-DD04602016B9")]
public interface class FileCodeModel2 : FileCodeModel
[<GuidAttribute("A65964DF-3A07-45EB-882A-DD04602016B9")>]
type FileCodeModel2 =  
    interface
        interface FileCodeModel
    end
public interface FileCodeModel2 extends FileCodeModel
FileCodeModel2 类型公开以下成员。
属性
页首
方法
.gif)  | 
AddAttribute(String, String, Object) | 
(继承自 FileCodeModel。) | 
.gif)  | 
AddAttribute(String, String, Object) | 
创建新的特性代码构造,并将代码插入正确的位置。 | 
.gif)  | 
AddClass(String, Object, Object, Object, vsCMAccess) | 
(继承自 FileCodeModel。) | 
.gif)  | 
AddClass(String, Object, Object, Object, vsCMAccess) | 
创建新的类代码构造,并将代码插入正确的位置。 | 
.gif)  | 
AddDelegate(String, Object, Object, vsCMAccess) | 
(继承自 FileCodeModel。) | 
.gif)  | 
AddDelegate(String, Object, Object, vsCMAccess) | 
创建新的委托代码构造,并将代码插入正确的位置。 | 
.gif)  | 
AddEnum(String, Object, Object, vsCMAccess) | 
(继承自 FileCodeModel。) | 
.gif)  | 
AddEnum(String, Object, Object, vsCMAccess) | 
创建新的枚举代码构造,并将代码插入正确的位置。 | 
.gif)  | 
AddFunction(String, vsCMFunction, Object, Object, vsCMAccess) | 
(继承自 FileCodeModel。) | 
.gif)  | 
AddFunction(String, vsCMFunction, Object, Object, vsCMAccess) | 
创建新的函数代码构造,并将代码插入正确的位置。 | 
.gif)  | 
AddImport | 
创建新的代码导入语句,并将代码插入正确的位置。 | 
.gif)  | 
AddInterface(String, Object, Object, vsCMAccess) | 
(继承自 FileCodeModel。) | 
.gif)  | 
AddInterface(String, Object, Object, vsCMAccess) | 
创建新的接口代码构造,并将代码插入正确的位置。 | 
.gif)  | 
AddNamespace(String, Object) | 
(继承自 FileCodeModel。) | 
.gif)  | 
AddNamespace(String, Object) | 
创建新的命名空间代码构造,并将代码插入正确的位置。 | 
.gif)  | 
AddStruct(String, Object, Object, Object, vsCMAccess) | 
(继承自 FileCodeModel。) | 
.gif)  | 
AddStruct(String, Object, Object, Object, vsCMAccess) | 
创建新的结构代码构造,并将代码插入正确的位置。 | 
.gif)  | 
AddVariable(String, Object, Object, vsCMAccess) | 
(继承自 FileCodeModel。) | 
.gif)  | 
AddVariable(String, Object, Object, vsCMAccess) | 
创建新的变量代码构造,并将代码插入正确的位置。 | 
.gif)  | 
BeginBatch | 
挂起编辑事件的发生,直至对代码模型所做的所有更改均已应用。 | 
.gif)  | 
CodeElementFromPoint(TextPoint, vsCMElement) | 
(继承自 FileCodeModel。) | 
.gif)  | 
CodeElementFromPoint(TextPoint, vsCMElement) | 
返回源文件中指定位置处的代码元素。 | 
.gif)  | 
ElementFromID | 
用于接收特定 CodeElement。 | 
.gif)  | 
EndBatch | 
让挂起的事件在代码模型的批处理编辑之后发生。 | 
.gif)  | 
Remove(Object) | 
(继承自 FileCodeModel。) | 
.gif)  | 
Remove(Object) | 
从源文件移除指定的代码元素。 | 
.gif)  | 
Synchronize | 
确保当前所有的节点模型事件已经引发,且模型的生成已完成。 | 
页首
备注
FileCodeModel 对象是项目项或文件的代码模型的根。
请参见
参考
EnvDTE80 命名空间