Partilhar via


SPService.Required Property

Gets a Boolean value that indicates whether an instance of the service must be running on at least one computer in the server farm.

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

Syntax

'Declaration
Public Overridable ReadOnly Property Required As Boolean
    Get
'Usage
Dim instance As SPService
Dim value As Boolean

value = instance.Required
public virtual bool Required { get; }

Property Value

Type: System.Boolean
true if a service instance must be running on at least one computer; otherwise, false.

See Also

Reference

SPService Class

SPService Members

Microsoft.SharePoint.Administration Namespace