CodeInterface2 接口

定义

表示源代码中的接口的对象。

public interface class CodeInterface2 : EnvDTE::CodeInterface
public interface class CodeInterface2 : EnvDTE::CodeInterface
__interface CodeInterface2 : EnvDTE::CodeInterface
[System.Runtime.InteropServices.Guid("860AB609-8AF2-4434-B4DD-A43DEE31B017")]
[System.Runtime.InteropServices.TypeLibType(4160)]
public interface CodeInterface2 : EnvDTE.CodeInterface
[<System.Runtime.InteropServices.Guid("860AB609-8AF2-4434-B4DD-A43DEE31B017")>]
[<System.Runtime.InteropServices.TypeLibType(4160)>]
type CodeInterface2 = interface
    interface CodeInterface
Public Interface CodeInterface2
Implements CodeInterface
属性
实现

注解

备注

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

属性

Access

设置或获取此项的访问特性。

Attributes

获取父对象的所有特性的集合。

Bases

获取派生该项的类的集合。

Children

获取此中包含的对象的集合 CodeInterface

Collection

获取包含支持此属性的 CodeInterface 对象的集合。

Comment

获取或设置与关联的注释 CodeInterface

DataTypeKind

设置或获取此接口与其他接口之间的关系。

DerivedTypes

获取从此对象派生的对象的集合。 未在 Visual C# 中实现。

DocComment

获取或设置当前代码模型元素的文档注释。

DTE

获取顶级扩展性对象。

EndPoint

获取表示代码项结束位置的文本点。

Extender[String]

获取请求的扩展程序对象(如果对此对象可用)。 未在 Visual C# 中实现。

ExtenderCATID

获取对象的扩展程序类别 ID (CATID)。 未在 Visual C# 中实现。

ExtenderNames

获取对象的可用扩展程序的列表。 未在 Visual C# 中实现。

FullName

获取对象文件的完整路径和名称。

InfoLocation

获取代码模型的功能。

IsCodeType

获取一个值,该值指示是否可以从此对象中获取 CodeType 对象。

IsDerivedFrom[String]

获取一个值,该值指示一个对象是否将另一个对象作为基。

IsGeneric

获取一个值,该值指示接口是否为泛型接口。

Kind

获取一个指示对象类型的枚举。

Language

获取用于创作代码的编程语言。

Members

获取此元素包含的项的集合 CodeInterface

Name

获取或设置对象的名称。

Namespace

获取定义父命名空间的对象。

Parent

获取 CodeInterface 对象的直接父对象。

Parts

获取接口的部分。

ProjectItem

获取与 CodeInterface 对象关联的 ProjectItem 对象。

StartPoint

获取一个 TextPoint 对象,该对象定义代码项的开头。

方法

AddAttribute(String, String, Object)

创建新的特性代码构造,并将代码插入正确的位置。

AddBase(Object, Object)

向继承对象列表中添加项。

AddEvent(String, String, Boolean, Object, vsCMAccess)

添加接口事件。

AddFunction(String, vsCMFunction, Object, Object, vsCMAccess)

创建新的函数代码构造,并将代码插入正确的位置。

AddProperty(String, String, Object, Object, vsCMAccess, Object)

创建新的属性代码构造,并将代码插入正确的位置。

GetEndPoint(vsCMPart)

获取标记代码元素定义的末尾的 TextPoint 对象。

GetStartPoint(vsCMPart)

获取定义代码元素的开头的 TextPoint 对象。

RemoveBase(Object)

从基列表中删除对象。

RemoveMember(Object)

删除成员代码构造。

适用于