다음을 통해 공유


VCCLCompilerTool.ExpandAttributedSource 속성

소스 파일에 삽입 한 확장 된 특성을 갖는 목록 파일을 만들 것인지 여부를 나타내는 값을 가져오거나 설정 합니다.ExpandAttributedSource은 컴파일러의 /Fx(삽입된 코드 병합) 옵션 기능을 노출합니다.

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

구문

‘선언
Property ExpandAttributedSource As Boolean
bool ExpandAttributedSource { get; set; }
property bool ExpandAttributedSource {
    bool get ();
    void set (bool value);
}
abstract ExpandAttributedSource : bool with get, set
function get ExpandAttributedSource () : boolean
function set ExpandAttributedSource (value : boolean)

속성 값

형식: System.Boolean
소스 파일에 확장 특성을 삽입한 목록 파일을 만들면 true이고, 그렇지 않으면 false입니다.

예제

참조 하십시오 방법: 프로젝트 모델 확장성에 대한 예제 코드 컴파일 컴파일하고이 예제를 실행 하는 방법에 대 한 정보를 합니다.

다음 예제에서는 수정에 ExpandAttributedSource 통합된 개발 환경 (IDE)의 속성:

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim cfgs, tools As IVCCollection
        Dim cfg As VCConfiguration
        Dim tool As VCCLCompilerTool
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCCLCompilerTool")
        tool.ExpandAttributedSource = True
    End Sub
End Module

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

VCCLCompilerTool 인터페이스

Microsoft.VisualStudio.VCProjectEngine 네임스페이스