Share via


SPServiceApplication constructor (String, SPService)

Initializes a new instance of the SPServiceApplication class by specifying the application name and parent service.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Protected Sub New ( _
    name As String, _
    service As SPService _
)
'Usage
Dim name As String
Dim service As SPService

Dim instance As New SPServiceApplication(name, service)
protected SPServiceApplication(
    string name,
    SPService service
)

Parameters

  • name
    Type: System.String

    The name of the new service application.

Remarks

The SPServiceApplication class is abstract and can never be instantiated. Therefore you can call this constructor only by calling base() on the declaration line of a constructor in a derived class.

See also

Reference

SPServiceApplication class

SPServiceApplication members

SPServiceApplication overload

Microsoft.SharePoint.Administration namespace