Connection Class

 

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

Namespace:   Microsoft.Web.Management.Client
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)

System.Object
  Microsoft.Web.Management.Client.Connection

[SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)]
public sealed class Connection : IServiceContainer, IServiceProvider, 
	IDisposable

NameDescription
System_CAPS_pubpropertyConfigurationPath

Gets the configuration path for the current management unit.

System_CAPS_pubpropertyCurrentFrameworkVersion

Gets the .NET Framework version.

System_CAPS_pubpropertyDeactivated

Gets a value indicating whether the connection has been deactivated.

System_CAPS_pubpropertyFrameworkVersions

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

System_CAPS_pubpropertyIsLocalConnection

Gets a value indicating whether the connection is local.

System_CAPS_pubpropertyIsUserServerAdministrator

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

System_CAPS_pubpropertyModules

Gets a list of modules for the current connection.

System_CAPS_pubpropertyName

Gets the name of the current connection.

System_CAPS_pubpropertyScope

Gets the management scope of the current connection.

System_CAPS_pubpropertyScopePath

Gets the management scope path for the connection.

System_CAPS_pubpropertyUrl

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

System_CAPS_pubpropertyUserName

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

NameDescription
System_CAPS_pubmethodCreateProxy(Module, Type)

Creates a module service proxy.

System_CAPS_pubmethodEndConfigurationManagement()

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

System_CAPS_pubmethodEndConfigurationManagement(Type)

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

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodRefresh()

Refreshes the connection to the server.

System_CAPS_pubmethodStartConfigurationManagement(ManagementConfigurationPath)

Sets the configuration path of the specified site.

System_CAPS_pubmethodStartConfigurationManagement(ManagementConfigurationPath, Type)

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

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubeventInitialized

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

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIServiceContainer.AddService(Type, Object)

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

System_CAPS_pubinterfaceSystem_CAPS_privmethodIServiceContainer.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.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIServiceContainer.AddService(Type, ServiceCreatorCallback)

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

System_CAPS_pubinterfaceSystem_CAPS_privmethodIServiceContainer.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.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIServiceContainer.RemoveService(Type)

Removes the specified service type from the service container.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIServiceContainer.RemoveService(Type, Boolean)

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

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDisposable.Dispose()

Releases all resources used by the Connection.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIServiceProvider.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.

Return to top
Show: