SPServer Constructor (String, SPFarm)

Adds the server with the given address to a server farm.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Sub New ( _
    address As String, _
    farm As SPFarm _
)
'Usage
Dim address As String
Dim farm As SPFarm

Dim instance As New SPServer(address, _
    farm)
public SPServer(
    string address,
    SPFarm farm
)

Parameters

  • address
    Type: System.String

    A string that contains the address of the server.

Remarks

Any addressing scheme is valid that can be resolved on the local network.

See Also

Reference

SPServer Class

SPServer Members

SPServer Overload

Microsoft.SharePoint.Administration Namespace