Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Gets an array of currently selected projects.
Namespace: EnvDTE80
Assembly: EnvDTE80 (in EnvDTE80.dll)
Syntax
'Declaration
ReadOnly Property ActiveSolutionProjects As Object
Object ActiveSolutionProjects { get; }
property Object^ ActiveSolutionProjects {
Object^ get ();
}
abstract ActiveSolutionProjects : Object with get
function get ActiveSolutionProjects () : Object
Property Value
Type: System.Object
An array of currently selected projects.
Examples
Sub ActiveSolutionProjectsExample()
Dim projs As System.Array
Dim proj As Project
projs = DTE2.ActiveSolutionProjects()
If projs.Length > 0 Then
proj = CType(projs.GetValue(0), EnvDTE.Project)
MsgBox(proj.UniqueName)
Else
MsgBox(projs.Length)
End If
End Sub
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.