SolutionConfiguration2.PlatformName Eigenschaft
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ruft die CPU-Zielplattform für die Konfiguration ab.
public:
property System::String ^ PlatformName { System::String ^ get(); };
public:
property Platform::String ^ PlatformName { Platform::String ^ get(); };
[System.Runtime.InteropServices.DispId(10)]
public string PlatformName { [System.Runtime.InteropServices.DispId(10)] get; }
[<System.Runtime.InteropServices.DispId(10)>]
[<get: System.Runtime.InteropServices.DispId(10)>]
member this.PlatformName : string
Public ReadOnly Property PlatformName As String
Eigenschaftswert
Der Name der CPU-Plattform.
- Attribute
Beispiele
Dieses Beispiel zeigt den Namen der CPU-Plattform des aktiven Projektmappenkonfigurationselements für das erste Element an. Öffnen Sie ein Projekt in der Visual Studio integrierten Entwicklungsumgebung (Integrated Development Environment, IDE), bevor Sie dieses Beispiel ausführen.
Imports EnvDTE
Imports EnvDTE80
Sub SolutionConfigurationPlatformNameExample(ByVal dte As DTE2)
Try
Dim builder As SolutionBuild = _
_applicationObject.Solution.SolutionBuild
Dim config As SolutionConfiguration2
config = CType(builder.SolutionConfigurations.Item(1) _
, SolutionConfiguration2)
MsgBox("The platform name of the solution configuration is: " _
& config.PlatformName)
Catch ex As System.Exception
MsgBox(ex.ToString)
End Try
End Sub
using EnvDTE;
using EnvDTE80;
using System.Windows.Forms;
public void SolutionConfigurationPlatformNameExample(DTE2 dte)
{
try
{
SolutionBuild builder =
_applicationObject.Solution.SolutionBuild;
SolutionConfiguration2 config;
config =
(SolutionConfiguration2)builder.SolutionConfigurations.Item(1);
MessageBox.Show("The platform name of the
solution configuration is: " + config.PlatformName);
}
catch(SystemException ex)
{
MessageBox.Show(ex.ToString());
}
}