Udostępnij za pośrednictwem


Reference.Culture Property

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

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

Syntax

'Declaration
ReadOnly Property Culture As String
    Get
string Culture { get; }
property String^ Culture {
    String^ get ();
}
abstract Culture : string
function get Culture () : String

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.

Remarks

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

Examples

' 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

.NET Framework Security

See Also

Reference

Reference Interface

VSLangProj Namespace