ConfigurationManager.ConfigurationRowNames Özellik
Proje ya da proje öğesi için tüm tanımlı yapılandırma adlarının dizisini alır.
Ad alanı: EnvDTE
Derleme: EnvDTE (EnvDTE.dll içinde)
Sözdizimi
'Bildirim
ReadOnly Property ConfigurationRowNames As Object
Object ConfigurationRowNames { get; }
property Object^ ConfigurationRowNames {
Object^ get ();
}
abstract ConfigurationRowNames : Object
function get ConfigurationRowNames () : Object
Özellik Değeri
Tür: System.Object
Proje ya da proje öğesi için tüm tanımlı yapılandırma adları dizisi.
Örnekler
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 arrayCRN;
if (dte.Solution.Projects.Count > 0)
{
configmgr = dte.Solution.Projects.Item(1).ConfigurationManager;
// Show all defined configuration names for the parent
// object of this Configuration Manager.
arrayCRN = (Array)configmgr.ConfigurationRowNames;
string cfnames = "Configuration Row Names: \n";
foreach (string n in arrayCRN)
cfnames = cfnames + n + "\n";
MessageBox.Show(cfnames);
}
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
}
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen güvenilen kod kitaplıklarını kullanma.