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 _
) 
[C++]
HRESULT __stdcall get_Culture(
   /* [out, retval] */ enumResourceLangID* retVal
);
HRESULT __stdcall put_Culture(
   /* [in] */ enumResourceLangID NewValue
);
[C#]
public enumResourceLangID Culture {get; set;}
[JScript.NET]
public function get Culture() : enumResourceLangID
public function set Culture(
   NewValue : enumResourceLangID
)

Parameters

NewValue
A enumResourceLangID value representing the culture.

Return Value

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

Example

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

Show:
© 2014 Microsoft