Export (0) Print
Expand All
Expand Minimize

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
[C++]
HRESULT __stdcall get_DefaultLocalizedResources(
   /* [out, retval] */ VARIANT_BOOL* retVal
);
[C#]
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.

Remarks

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

Example

' 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?: " & _
          tool.DefaultLocalizedResources.ToString)
    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

Show:
© 2014 Microsoft