ConfigurationManager.SupportedPlatforms (Propiedad)
Obtiene una lista de nombres de plataforma que se pueden agregar a este proyecto y que pueden servir para crear configuraciones de compilación.
Espacio de nombres: EnvDTE
Ensamblado: EnvDTE (en EnvDTE.dll)
Sintaxis
'Declaración
ReadOnly Property SupportedPlatforms As Object
Get
Object SupportedPlatforms { get; }
property Object^ SupportedPlatforms {
Object^ get ();
}
abstract SupportedPlatforms : Object
function get SupportedPlatforms () : Object
Valor de propiedad
Tipo: System.Object
Matriz SafeArray de cadenas.
Ejemplos
public void CodeExample(DTE2 dte, AddIn addin)
{ // Make sure you have a solution loaded into Visual Studio
// before running the following example.
try
{
ConfigurationManager configmgr;
Array arraySP;
if (dte.Solution.Projects.Count > 0)
{
configmgr = dte.Solution.Projects.Item(1).ConfigurationManager;
// Show all supported platforms.
arraySP = (Array)configmgr.SupportedPlatforms;
string sp = "Supported Platforms: \n";
foreach (string s in arraySP)
sp = sp + s + "\n";
MessageBox.Show(sp);
}
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
}
Seguridad de .NET Framework
- Plena confianza para el llamador inmediato. Un código de confianza parcial no puede utilizar este miembro. Para obtener más información, vea Utilizar bibliotecas de código que no es de plena confianza.