Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Ruft den Namen der momentan aktiven Fensterkonfiguration ab.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
ReadOnly Property ActiveConfigurationName As String
string ActiveConfigurationName { get; }
property String^ ActiveConfigurationName {
String^ get ();
}
abstract ActiveConfigurationName : string
function get ActiveConfigurationName () : String
Eigenschaftswert
Typ: System.String
Eine Zeichenfolge, die den Namen der momentan aktiven Fensterkonfiguration darstellt.
Beispiele
Sub ActiveConfigurationNameExample(dte as DTE)
' Set references to all necessary objects.
Dim colWinConfig As WindowConfigurations
Dim objWinConfig As WindowConfiguration
colWinConfig = dte.WindowConfigurations
objWinConfig = colWinConfig.Item(2)
' List the current window configuration, then set it to another
' one.
MsgBox("Current active window configuration: " & _
colWinConfig.ActiveConfigurationName)
objWinConfig.Apply()
MsgBox("Current active window configuration: " & _
colWinConfig.ActiveConfigurationName)
End Sub
void ActiveConfigurationNameExample(_DTE dte)
{
// Set references to all necessary objects.
WindowConfigurations colWinConfig;
WindowConfiguration objWinConfig;
colWinConfig = dte.WindowConfigurations;
objWinConfig = colWinConfig.Item(2);
// List the current window configuration, then set it to another
// one.
MessageBox.Show("Current active window configuration: " +
colWinConfig.ActiveConfigurationName);
objWinConfig.Apply(false);
MessageBox.Show("Current active window configuration: " +
colWinConfig.ActiveConfigurationName);
}
.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.