SolutionContext.PlatformName الخاصية

الحصول على اسم النظام الأساسي المعتمد بواسطة هذا التعيين.

مساحة الاسم:  EnvDTE
التجميع:  EnvDTE (في EnvDTE.dll)

بناء الجملة

'إقرار
ReadOnly Property PlatformName As String
    Get
string PlatformName { get; }
property String^ PlatformName {
    String^ get ();
}
abstract PlatformName : string
function get PlatformName () : String

قيمة الخاصية

النوع: System.String
سلسلة أحرف يمثل اسم نظام أساسي معتمد من قبل هذا التعيين.

ملاحظات

إذا كان يدعم مشروع لا الأنظمة الأساسية، ثم PlatformNameإرجاع على سلسلة فارغ.

أمثلة

Sub PlatformNameExample(ByVal dte As DTE2)

    ' Before running this example, open a project.

    ' Display the solution contexts of the Debug configuration.
    Dim config As SolutionConfiguration = _
        dte.Solution.SolutionBuild.SolutionConfigurations.Item("Debug")
    Dim context As SolutionContext
    Dim msg As String

    msg &= config.Name & " Configuration Project Platforms:" & _
        vbCrLf & vbCrLf

    For Each context In config.SolutionContexts
        msg &= "    " & context.ProjectName & " = " & _
            context.PlatformName & vbCrLf
    Next

    MsgBox(msg)

End Sub
public void PlatformNameExample(DTE2 dte)
{
    // Before running this example, open a project.

    // Display the solution contexts of the Debug configuration.
    SolutionConfiguration config = 
        dte.Solution.SolutionBuild.SolutionConfigurations.Item(
        "Debug");
    string msg = "";

    msg += config.Name + " Configuration Project Platforms:\n\n";

    foreach (SolutionContext context in config.SolutionContexts)
        msg += "    " + context.ProjectName + " = " + 
            context.PlatformName + "\n";

    MessageBox.Show(msg);
}

أمن NET Framework.

راجع أيضًَا

المرجع

SolutionContext واجهة

SolutionContext الأعضاء

EnvDTE مساحة الاسم

موارد أخرى

كيفية: الترجمة وإعادة تشغيل أمثلة التعليمات البرمجية لطراز كائن التنفيذ التلقائي