Export (0) Print
Expand All
Expand Minimize

Culture Property (VCResourceCompilerTool Object)

Visual Studio .NET 2003

Lists the culture (such as U.S. English or Mexican Spanish) used in the resources. Exposes the functionality of the Resource Compiler's /l option.

[Visual Basic.NET]
Public Property Culture() As enumResourceLangID
[Visual Basic 6]
Property Get Culture() As enumResourceLangID
Property Let Culture( _
   ByVal NewValue As enumResourceLangID _
HRESULT __stdcall get_Culture(
   /* [out, retval] */ enumResourceLangID* retVal
HRESULT __stdcall put_Culture(
   /* [in] */ enumResourceLangID NewValue
public enumResourceLangID Culture {get; set;}
public function get Culture() : enumResourceLangID
public function set Culture(
   NewValue : enumResourceLangID


A enumResourceLangID value representing the culture.

Return Value

Returns a enumResourceLangID value that represents the culture used in the resources.


The following sample code modifies the Culture property in the development environment:

' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a 
' Visual C++ .NET 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 VCConfiguration
        Dim tool As VCResourceCompilerTool
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCResourceCompilerTool")
        tool.Culture = enumResourceLangID.rcArabicEgypt
    End Sub
End Module

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Applies To: VCResourceCompilerTool Object

© 2014 Microsoft