Connection Class

Definition

Represents a connection to an application, server, or site.

public ref class Connection sealed : IDisposable, IServiceProvider, System::ComponentModel::Design::IServiceContainer
public sealed class Connection : IDisposable, IServiceProvider, System.ComponentModel.Design.IServiceContainer
type Connection = class
    interface IServiceContainer
    interface IServiceProvider
    interface IDisposable
Public NotInheritable Class Connection
Implements IDisposable, IServiceContainer, IServiceProvider
Inheritance
Connection
Implements

Remarks

A Connection object represents a single management session for a specific management unit. It is defined by a management scope, the associated management unit identifier (which may be a server, application, or site), and the credentials used to initiate the session.

Properties

ConfigurationPath

Gets the configuration path for the current management unit.

CurrentFrameworkVersion

Gets the .NET Framework version.

Deactivated

Gets a value indicating whether the connection has been deactivated.

FrameworkVersions

Gets the .NET Framework versions in the active management session.

IsLocalConnection

Gets a value indicating whether the connection is local.

IsUserServerAdministrator

Gets a value indicating whether the user opening the connection is a member of the Administrators user group.

Modules

Gets a list of modules for the current connection.

Name

Gets the name of the current connection.

Scope

Gets the management scope of the current connection.

ScopePath

Gets the management scope path for the connection.

Url

Gets the Uniform Resource Identifier (URI) for the current connection.

UserName

Gets the Windows domain or local account name for the user.

Methods

CreateProxy(Module, Type)

Creates a module service proxy.

EndConfigurationManagement()

Sets the configuration path of the root of the current connection.

EndConfigurationManagement(Type)

Sets the configuration path of the root of the current connection by using the specified page type.

Refresh()

Refreshes the connection to the server.

SetConfigurationPath(ManagementConfigurationPath)
StartConfigurationManagement(ManagementConfigurationPath)

Sets the configuration path of the specified site.

StartConfigurationManagement(ManagementConfigurationPath, Type)

Sets the configuration path of the specified site, using the specified page type.

Events

Initialized

Occurs when all modules contained in this connection have been initialized.

Explicit Interface Implementations

IDisposable.Dispose()

Releases all resources used by the Connection.

IServiceContainer.AddService(Type, Object)

Adds the service that has the specified service type instance to the service container.

IServiceContainer.AddService(Type, Object, Boolean)

Adds the service that has the specified service type instance to the service container, optionally promoting the request to any parent service containers.

IServiceContainer.AddService(Type, ServiceCreatorCallback)

Adds the service that has the specified callback object to the service container.

IServiceContainer.AddService(Type, ServiceCreatorCallback, Boolean)

Adds the service that has the specified callback object to the service container, optionally promoting the request to any parent service containers.

IServiceContainer.RemoveService(Type)

Removes the specified service type from the service container.

IServiceContainer.RemoveService(Type, Boolean)

Removes the specified service type from the service container, optionally promoting the request to any parent service containers.

IServiceProvider.GetService(Type)

Returns the service object of the specified type.

Applies to