VCProjectEngine.Platforms-Eigenschaft
Ruft die Auflistung von Plattformen im Projektmodul ab.
Namespace: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Syntax
'Declaration
ReadOnly Property Platforms As Object
Object Platforms { get; }
property Object^ Platforms {
Object^ get ();
}
abstract Platforms : Object with get
function get Platforms () : Object
Eigenschaftswert
Typ: Object
Die Auflistung von Plattformen im Projektmodul.
Beispiele
Informationen zum Kompilieren und Ausführen dieses Beispiels finden Sie unter Gewusst wie: Kompilieren von Beispielcode für die Erweiterbarkeit von Projektmodellen.
Im folgenden Beispiel wird der Name von der Plattform der aktuellen Projektkonfiguration ab.
' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
Sub Test()
Dim prj As VCProject
Dim cfgs, plats As IVCCollection
Dim cfg As VCConfiguration
Dim ProjEng As VCProjectEngine
Dim plat As VCPlatform
prj = DTE.Solution.Projects.Item(1).Object
cfgs = prj.Configurations
ProjEng = cfgs.VCProjectEngine
plats = ProjEng.Platforms
plat = plats.Item(1)
MsgBox(plat.Name)
End Sub
End Module
.NET Framework-Sicherheit
- Volle Vertrauenswürdigkeit für den unmittelbaren Aufrufer. Dieser Member kann von nur teilweise vertrauenswürdigem Code nicht verwendet werden. Weitere Informationen finden Sie unter Verwenden von Bibliotheken aus teilweise vertrauenswürdigem Code.