다음을 통해 공유


IVsaCodeItem 인터페이스

참고: 이 API는 이제 사용되지 않습니다.

스크립트 엔진이 컴파일하는 코드 항목을 표시합니다.

네임스페이스:  Microsoft.Vsa
어셈블리:  Microsoft.Vsa(Microsoft.Vsa.dll)

구문

‘선언
<ObsoleteAttribute("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.")> _
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
<GuidAttribute("E0C0FFE7-7eea-4ee5-b7e4-0080c7eb0b74")> _
Public Interface IVsaCodeItem _
    Inherits IVsaItem
[ObsoleteAttribute("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.")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
[GuidAttribute("E0C0FFE7-7eea-4ee5-b7e4-0080c7eb0b74")]
public interface IVsaCodeItem : IVsaItem
[ObsoleteAttribute(L"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.")]
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
[GuidAttribute(L"E0C0FFE7-7eea-4ee5-b7e4-0080c7eb0b74")]
public interface class IVsaCodeItem : IVsaItem
[<ObsoleteAttribute("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.")>]
[<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>]
[<GuidAttribute("E0C0FFE7-7eea-4ee5-b7e4-0080c7eb0b74")>]
type IVsaCodeItem =  
    interface
        interface IVsaItem
    end
public interface IVsaCodeItem extends IVsaItem

IVsaCodeItem 형식에서는 다음과 같은 멤버를 노출합니다.

속성

  이름 설명
Public 속성 CodeDOM 코드 항목에 표시되는 코드 문서 개체 모델(CodeDOM)을 가져옵니다.
Public 속성 IsDirty 항목의 현재 메모리 내의 표현이 지속된 표현과 다른지 여부를 나타내는 값을 반환합니다. (IVsaItem에서 상속됨)
Public 속성 ItemType IVsaItems.CreateItem Method 메서드에 의해 결정된 대로 지정된 개체의 형식을 가져옵니다. (IVsaItem에서 상속됨)
Public 속성 Name 항목의 이름을 가져오거나 설정합니다. (IVsaItem에서 상속됨)
Public 속성 SourceText 자동 생성된 코드가 있으면 해당 코드를 포함하여 지정된 코드 항목의 텍스트를 설정하거나 가져옵니다.

위쪽

메서드

  이름 설명
Public 메서드 AddEventSource 코드 항목에 이벤트 소스를 추가합니다.코드 항목은 호스트가 구현하는 IVsaSite.GetEventSourceInstance 메서드를 호출하여 명명된 이벤트 소스에 이벤트를 후크하는 데 이벤트 소스를 사용합니다.
Public 메서드 AppendSourceText 지정된 텍스트를 코드 항목 끝에 추가합니다.
Public 메서드 GetOption 스크립트 엔진에 대한 구현 관련 옵션을 가져옵니다. (IVsaItem에서 상속됨)
Public 메서드 RemoveEventSource 코드 항목에서 지정된 이벤트 소스를 제거합니다.
Public 메서드 SetOption 스크립트 엔진에 대한 구현 관련 옵션을 설정합니다. (IVsaItem에서 상속됨)

위쪽

설명

지정 된 코드 항목은 클래스, 모듈 또는 기타 소스 텍스트를 포함할 수 있습니다.

권한이 있는 IVsaCodeItem 인터페이스의 멤버를 호출 하는 데 필요 하지 않습니다.

스크립트 엔진 코드 항목을 추가 하기 위해이 인터페이스를 구현 합니다.

참고 항목

참조

Microsoft.Vsa 네임스페이스