Reference::Culture Property

 

Gets the culture string of a reference. Read-only.

Namespace:   VSLangProj
Assembly:  VSLangProj (in VSLangProj.dll)

property String^ Culture {
	String^ get();
}

Property Value

Type: System::String^

The return value depends on the reference type.

Reference Type

Value Returned

Assembly

Culture string. For example, "EN-US" for English - United States.

COM

Locale ID. The string is the hex locale ID of the type library being reference. For example, "0" for multilanguage or "409" for English - United States.

Culture information includes language and calendar specifications. For information about valid strings, see CultureInfo.

' Macro Editor
Imports VSLangProj
Public Sub DisplayCultures()
   ' The first project is a Visual Basic or C# project.
   Dim vsProject As VSProject = _
        CType(DTE.Solution.Projects.Item(1).Object, VSProject)
   Dim aRef As Reference

   For Each aref In vsProject.References
      MsgBox(aRef.Name & " " & aRef.Culture)
   Next
End Sub
Return to top
Show: