Condividi tramite


SPService constructor (String, SPFarm)

Initializes a new instance of the SPService class based on the specified service name and server farm.

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

Syntax

'Declaration
Protected Sub New ( _
    name As String, _
    farm As SPFarm _
)
'Usage
Dim name As String
Dim farm As SPFarm

Dim instance As New SPService(name, farm)
protected SPService(
    string name,
    SPFarm farm
)

Parameters

  • name
    Type: System.String

    A string that contains the name of the service.

See also

Reference

SPService class

SPService members

SPService overload

Microsoft.SharePoint.Administration namespace