Proprietà VCMidlTool.InterfaceIdentifierFileName
Ottiene o imposta un nome per il file dell'identificatore di interfaccia, l'impostazione predefinita è idlfile_i.c.
Spazio dei nomi: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Sintassi
'Dichiarazione
Property InterfaceIdentifierFileName As String
string InterfaceIdentifierFileName { get; set; }
property String^ InterfaceIdentifierFileName {
String^ get ();
void set (String^ value);
}
abstract InterfaceIdentifierFileName : string with get, set
function get InterfaceIdentifierFileName () : String
function set InterfaceIdentifierFileName (value : String)
Valore proprietà
Tipo: System.String
Un nome per il file dell'identificatore di interfaccia.
Note
InterfaceIdentifierFileName espone la funzionalità dell'opzione /iid di MIDL.
Esempi
vedere Procedura: compilare codice di esempio per l'Extensibility del modello di progetto per informazioni su come compilare ed eseguire l'esempio.
Nell'esempio seguente viene modificato InterfaceIdentifierFileName proprietà nell'ambiente di sviluppo (IDE) integrato (IDE):
[Visual Basic]
' add reference to Microsoft.VisualStudio.VCProjectEngine
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 VCMidlTool
prj = DTE.Solution.Projects.Item(1).Object
cfgs = prj.Configurations
cfg = cfgs.Item(1)
tool = cfg.Tools("VCMIDLTool")
tool.InterfaceIdentifierFileName = "myfile_i.c"
End Sub
End Module
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.