VCAssemblyReference.Culture 속성
선택한 참조의 문화권을 가져옵니다.
네임스페이스: Microsoft.VisualStudio.VCProjectEngine
어셈블리: Microsoft.VisualStudio.VCProjectEngine(Microsoft.VisualStudio.VCProjectEngine.dll)
구문
‘선언
ReadOnly Property Culture As String
string Culture { get; }
property String^ Culture {
String^ get ();
}
abstract Culture : string with get
function get Culture () : String
속성 값
형식: String
enumResourceLangID 값입니다.
설명
이 샘플을 컴파일하고 실행하는 방법을 보려면 방법: 프로젝트 모델 확장성에 대한 예제 코드 컴파일을 참조하십시오.
예제
[Visual Basic]
다음 예제에서는 코드 그룹의 Culture 프로젝트의 각 참조에 대 한 속성 값:
' Add a reference to Microsoft.VisualStudio.VCProjectEngine.
' This example displays the build number of every file
' referenced in a Visual C++ project. Therefore, make sure
' you have a Visual C++ project with references loaded before
' running this code.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
Sub Test()
Dim proj As Project
Dim vcproj As VCProject
Dim ref As VCReference
On Error Resume Next
' Loop each project in the solution.
For Each proj In DTE.Solution.Projects
vcproj = Nothing
vcproj = CType(proj.Object, VCProject)
' If this is a Visual C++ project.
If Not vcproj Is Nothing Then
' Loop each reference in the Visual C++ project.
For Each ref In vcproj.VCReferences
MsgBox("The culture for the file referenced by '" & _
ref.Name & "' is '" & ref.Culture & "'.")
Next
End If
Next
End Sub
End Module
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용를 참조하세요.