VCManagedResourceCompilerTool.DefaultLocalizedResources 속성
지정된 .resx 파일을 기본 리소스 또는 위성 DLL에 제공할지 여부를 나타내는 값을 가져옵니다.
네임스페이스: Microsoft.VisualStudio.VCProjectEngine
어셈블리: Microsoft.VisualStudio.VCProjectEngine(Microsoft.VisualStudio.VCProjectEngine.dll)
구문
‘선언
ReadOnly Property DefaultLocalizedResources As Boolean
bool DefaultLocalizedResources { get; }
property bool DefaultLocalizedResources {
bool get ();
}
abstract DefaultLocalizedResources : bool with get
function get DefaultLocalizedResources () : boolean
속성 값
형식: Boolean
.resx 파일이 기본 리소스 또는 위성 DLL에 적용되면 true이고, 그렇지 않으면 false입니다.
설명
이 속성은 프로젝트 자체 보다는 프로젝트의 개별.resx 파일에 대해서만 의미가 있습니다.
참고 방법: 프로젝트 모델 확장성에 대한 예제 코드 컴파일 컴파일 및이 예제를 실행 하는 방법에 대 한 내용은.
예제
' 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("Default localized resources?: " & _
tool.DefaultLocalizedResources.ToString)
End Sub
End Module
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용를 참조하세요.