다음을 통해 공유


VCManagedResourceCompilerTool.ResourceFileName 속성

이 도구에 의해 생성되는 중간 .resources 파일의 이름을 가져오거나 설정합니다.

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

구문

‘선언
Property ResourceFileName As String
string ResourceFileName { get; set; }
property String^ ResourceFileName {
    String^ get ();
    void set (String^ value);
}
abstract ResourceFileName : string with get, set
function get ResourceFileName () : String 
function set ResourceFileName (value : String)

속성 값

형식: String
생성된 중간 .resources 파일의 이름입니다.

설명

디자이너의 값이 필요한 ResourceFileName 다음 형식을 사용 하 여: < RootNamespace >. < 이름 >.리소스에 있는 < RootNamespace > 프로젝트 및 프로그램 < 이름 >에 대 한 루트 네임 스페이스 연결된 된 양식 파일에 있는 클래스의 이름이입니다. 리소스가 지역화 된 로케일 이름도 포함 해야 합니다. 예를 들어 프랑스어 리소스 사용 < RootNamespace >. < 이름 >. fr.resources.

참고 방법: 프로젝트 모델 확장성에 대한 예제 코드 컴파일 컴파일 및이 예제를 실행 하는 방법에 대 한 내용은.

예제

' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a 
' Visual C++ project loaded before running this example.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim cfgs, tools As IVCCollection
        Dim cfg As VCFileConfiguration
        Dim tool As VCManagedResourceCompilerTool
        Dim file As VCFile
        prj = DTE.Solution.Projects.Item(1).Object
        file = prj.Files("Form1.resx")
        cfgs = file.FileConfigurations
        cfg = cfgs.Item(1)
        tool = cfg.Tool
        MsgBox("Resource file name: " & tool.ResourceFileName)
    End Sub
End Module

.NET Framework 보안

참고 항목

참조

VCManagedResourceCompilerTool 인터페이스

Microsoft.VisualStudio.VCProjectEngine 네임스페이스