Condividi tramite


Proprietà VCManagedResourceCompilerTool.ResourceFileName

Ottiene o imposta il nome del file resources intermedio generato da questo strumento.

Spazio dei nomi:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Sintassi

'Dichiarazione
Property ResourceFileName As String
string ResourceFileName { get; set; }
property String^ ResourceFileName {
    String^ get ();
    void set (String^ value);
}
abstract ResourceFileName : string with get, set
function get ResourceFileName () : String 
function set ResourceFileName (value : String)

Valore proprietà

Tipo: String
Nome del file resources intermedio generato.

Note

Le finestre di progettazione richiedono il valore di ResourceFileName per utilizzare il formato seguente: <RootNamespace>.<ClassName>. Le risorse, dove <RootNamespace> è lo spazio dei nomi radice per il progetto e <ClassName> è il nome della classe nel file collegato del form. Se le risorse localizzate, impostazioni locali devono far parte del nome anche. Ad esempio, le risorse francesi utilizzare <RootNamespace>.<ClassName>.fr.resources.

Vedere Procedura: compilare codice di esempio per l'Extensibility del modello di progetto per informazioni su come compilare ed eseguire l'esempio.

Esempi

' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a 
' Visual C++ 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("Resource file name: " & tool.ResourceFileName)
    End Sub
End Module

Sicurezza di .NET Framework

Vedere anche

Riferimenti

VCManagedResourceCompilerTool Interfaccia

Spazio dei nomi Microsoft.VisualStudio.VCProjectEngine