Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DefaultLocalizedResources Property
Collapse the table of content
Expand the table of content

DefaultLocalizedResources Property

Visual Studio .NET 2003

Returns whether the given .resx file contributes to the default resources or to a satellite DLL.

[Visual Basic .NET]
Public ReadOnly Property DefaultLocalizedResources() As Boolean
[Visual Basic 6]
Property Get DefaultLocalizedResources() As Boolean
HRESULT __stdcall get_DefaultLocalizedResources(
   /* [out, retval] */ VARIANT_BOOL* retVal
public bool DefaultLocalizedResources {get;}
[JScript .NET]
public function get DefaultLocalizedResources() : Boolean

Return Value

True if the .resx file contributes to the default resources or satellite DLL; false if not.


This property is meaningful only for individual .resx files in a project, not for the project itself.


' 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 VCFileConfiguration
        Dim tool As VCManagedResourceCompilerTool
        Dim file As VCFile
        prj = DTE.Solution.Projects.Item(1).Object
        file = prj.Files("Form1.resx")
        cfgs = file.FileConfigurations
        cfg = cfgs.Item(1)
        tool = cfg.Tool
        MsgBox("Default localized resources?: " & _
    End Sub
End Module

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

See Also

Applies To: VCManagedResourceCompilerTool Object

© 2015 Microsoft