IVsaCodeItem 接口  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
Use of this type is not recommended because it is being deprecated in Visual Studio 2005; there will be no replacement for this feature. Please see the ICodeCompiler documentation for additional help.
表示要通过脚本引擎编译的代码项。
public interface class IVsaCodeItem : Microsoft::Vsa::IVsaItem
	[System.Runtime.InteropServices.Guid("E0C0FFE7-7eea-4ee5-b7e4-0080c7eb0b74")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsaCodeItem : Microsoft.Vsa.IVsaItem
	[System.Runtime.InteropServices.Guid("E0C0FFE7-7eea-4ee5-b7e4-0080c7eb0b74")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
[System.Obsolete("Use of this type is not recommended because it is being deprecated in Visual Studio 2005; there will be no replacement for this feature. Please see the ICodeCompiler documentation for additional help.")]
public interface IVsaCodeItem : Microsoft.Vsa.IVsaItem
	[<System.Runtime.InteropServices.Guid("E0C0FFE7-7eea-4ee5-b7e4-0080c7eb0b74")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsaCodeItem = interface
    interface IVsaItem
	[<System.Runtime.InteropServices.Guid("E0C0FFE7-7eea-4ee5-b7e4-0080c7eb0b74")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
[<System.Obsolete("Use of this type is not recommended because it is being deprecated in Visual Studio 2005; there will be no replacement for this feature. Please see the ICodeCompiler documentation for additional help.")>]
type IVsaCodeItem = interface
    interface IVsaItem
	Public Interface IVsaCodeItem
Implements IVsaItem
	- 派生
 
- 属性
 
- 实现
 
注解
指定的代码项可以包含类、模块或其他源文本。
调用 IVsaCodeItem 接口的任何成员不需要任何权限。
脚本引擎实现此接口以添加代码项。
属性
| CodeDOM | 
			 
				已过时.
			 
		获取在代码项中表示的代码文档对象模型 (CodeDOM)。  | 
        	
| IsDirty | 
			 
		已过时.
	 
返回一个值,它指示该项的当前内存中表示形式是否与保留的表示形式不同。 (继承自 IVsaItem) | 
        	
| ItemType | 
			 
		已过时.
	 
获取指定对象的类型(如 CreateItem(String, VsaItemType, VsaItemFlag) 方法所确定的那样)。 (继承自 IVsaItem) | 
        	
| Name | 
			 
		已过时.
	 
获取或设置项的名称。 (继承自 IVsaItem) | 
        	
| SourceText | 
			 
				已过时.
			 
		获取或设置指定的代码项的文本,包括自动生成的代码(如果有)。  | 
        	
方法
| AddEventSource(String, String) | 
			 
				已过时.
			 
		将事件源添加到代码项中。 代码项通过调用 IVsaSite.GetEventSourceInstance 方法(由宿主实现),使用事件源将事件挂钩到命名事件源。  | 
        	
| AppendSourceText(String) | 
			 
				已过时.
			 
		将指定的文本追加到代码项尾部。  | 
        	
| GetOption(String) | 
			 
		已过时.
	 
获取脚本引擎实现特定的选项。 (继承自 IVsaItem) | 
        	
| RemoveEventSource(String) | 
			 
				已过时.
			 
		从代码项中移除指定的事件源。  | 
        	
| SetOption(String, Object) | 
			 
		已过时.
	 
设置脚本引擎特定于实现的选项。 (继承自 IVsaItem) |