Partager via


Page.GetService Method (Type)

 

Gets the service object of the specified type.

Namespace:   Microsoft.WindowsServerSolutions.Administration.ObjectModel
Assembly:  Microsoft.WindowsServerSolutions.Administration.ObjectModel (in Microsoft.WindowsServerSolutions.Administration.ObjectModel.dll)

Syntax

public object GetService(
    Type serviceType
)
public:
virtual Object^ GetService(
    Type^ serviceType
) sealed
Public Function GetService (
    serviceType As Type
) As Object

Parameters

  • serviceType
    Type: System.Type

    An object that specifies the type of service object that is returned.

Return Value

Type: System.Object

An instance of Object that specifies the type of service object; or a null reference

Implements

IServiceProvider.GetService(Type)

Remarks

Services enable design-time objects to access specific features and methods implemented by a service object. A service object is an object that provides custom support to other objects. GetService obtains the object that provides the service.

The services that can be used are described in Microsoft.WindowsServerSolutions.Administration.ObjectModel.ComponentServices.

See Also

Page Class
Microsoft.WindowsServerSolutions.Administration.ObjectModel Namespace

Return to top