Connection Class
Represents a connection to an application, server, or site.
Assembly: Microsoft.Web.Management (in Microsoft.Web.Management.dll)
| Name | Description | |
|---|---|---|
![]() | 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. |
| Name | Description | |
|---|---|---|
![]() | 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. |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | Refresh() | Refreshes the connection to the server. |
![]() | 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. |
![]() | ToString() | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | Initialized | Occurs when all modules contained in this connection have been initialized. |
| Name | Description | |
|---|---|---|
![]() ![]() | 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. |
![]() ![]() | IDisposable.Dispose() | Releases all resources used by the Connection. |
![]() ![]() | IServiceProvider.GetService(Type) | Returns the service object of the specified type. |
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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




