Export (0) Print
Expand All

Connection Class

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

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

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

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

The Connection type exposes the following members.

  NameDescription
Public propertyConfigurationPathGets the configuration path for the current management unit.
Public propertyCurrentFrameworkVersionGets the .NET Framework version.
Public propertyDeactivatedGets a value indicating whether the connection has been deactivated.
Public propertyFrameworkVersionsGets the .NET Framework versions in the active management session.
Public propertyIsLocalConnectionGets a value indicating whether the connection is local.
Public propertyIsUserServerAdministratorGets a value indicating whether the user opening the connection is a member of the Administrators user group.
Public propertyModulesGets a list of modules for the current connection.
Public propertyNameGets the name of the current connection.
Public propertyScopeGets the management scope of the current connection.
Public propertyScopePathGets the management scope path for the connection.
Public propertyUrlGets the Uniform Resource Identifier (URI) for the current connection.
Public propertyUserNameGets the Windows domain or local account name for the user.
Top

  NameDescription
Public methodCreateProxyCreates a module service proxy.
Public methodEndConfigurationManagement()()()()Sets the configuration path of the root of the current connection.
Public methodEndConfigurationManagement(Type)Sets the configuration path of the root of the current connection by using the specified page type.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRefreshRefreshes the connection to the server.
Public methodSetConfigurationPath
Public methodStartConfigurationManagement(ManagementConfigurationPath)Sets the configuration path of the specified site.
Public methodStartConfigurationManagement(ManagementConfigurationPath, Type)Sets the configuration path of the specified site, using the specified page type.
Public methodToString (Inherited from Object.)
Top

  NameDescription
Public eventInitializedOccurs when all modules contained in this connection have been initialized.
Top

  NameDescription
Explicit interface implemetationPrivate methodIServiceContainerAddService(Type, ServiceCreatorCallback)Adds the service that has the specified callback object to the service container.
Explicit interface implemetationPrivate methodIServiceContainerAddService(Type, Object)Adds the service that has the specified service type instance to the service container.
Explicit interface implemetationPrivate methodIServiceContainerAddService(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.
Explicit interface implemetationPrivate methodIServiceContainerAddService(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.
Explicit interface implemetationPrivate methodIDisposable..::..DisposeReleases all resources used by the Connection.
Explicit interface implemetationPrivate methodIServiceProvider..::..GetServiceReturns the service object of the specified type.
Explicit interface implemetationPrivate methodIServiceContainerRemoveService(Type)Removes the specified service type from the service container.
Explicit interface implemetationPrivate methodIServiceContainerRemoveService(Type, Boolean)Removes the specified service type from the service container, optionally promoting the request to any parent service containers.
Top

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.

Community Additions

ADD
Show:
© 2014 Microsoft