Compartir a través de


Connection.FrameworkVersions Propiedad

Definición

Obtiene las versiones de .NET Framework en la sesión de administración activa.

public:
 property System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::Web::Management::Server::ManagementFrameworkVersion ^> ^ FrameworkVersions { System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::Web::Management::Server::ManagementFrameworkVersion ^> ^ get(); };
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.Web.Management.Server.ManagementFrameworkVersion> FrameworkVersions { get; }
member this.FrameworkVersions : System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.Web.Management.Server.ManagementFrameworkVersion>
Public ReadOnly Property FrameworkVersions As ReadOnlyCollection(Of ManagementFrameworkVersion)

Valor de propiedad

Interfaz ICollection que contiene todas las versiones de .NET Framework en la sesión de administración activa. Cada ICollection elemento contiene un ManagementFrameworkVersion objeto .

Ejemplos

public LinkedList<string> getFrameworkVers(IServiceProvider sp) {
    Connection con = (Connection)sp.GetService(typeof(Connection));
    System.Collections.ICollection fcol = con.FrameworkVersions;
    LinkedList<string> llp = new LinkedList<string>();

    foreach (object o in fcol) {
        Microsoft.Web.Management.Server.ManagementFrameworkVersion mf = (Microsoft.Web.Management.Server.ManagementFrameworkVersion)o;
        llp.AddLast(mf.Version.ToString() + " Name: " + mf.Name);
    }

    return llp;
}

Se aplica a