This documentation is archived and is not being maintained.

OutputFileName Property

Visual Studio .NET 2003

Returns the name of the final output file this .resx file contributes to.

[Visual Basic .NET]
Public ReadOnly Property OutputFileName() As String
[Visual Basic 6]
Property Get OutputFileName() As String
HRESULT __stdcall get_OutputFileName(
   /* [out, retval] */ BSTR* retVal
public string OutputFileName {get;}
[JScript .NET]
public function get OutputFileName() : String

Return Value

A string representing the name of the final output file.


' 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("Output file name: " & tool.OutputFileName)
    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