SPCmdletAttribute.RequireLocalFarmExist Property
Gets or sets a Boolean value specifying whether the cmdlet requires that a farm exist on the local machine in order to execute.
Namespace: Microsoft.SharePoint.PowerShell
Assembly: Microsoft.SharePoint.PowerShell (in Microsoft.SharePoint.PowerShell.dll)
Syntax
'Declaration
Public Property RequireLocalFarmExist As Boolean
Get
Set
'Usage
Dim instance As SPCmdletAttribute
Dim value As Boolean
value = instance.RequireLocalFarmExist
instance.RequireLocalFarmExist = value
public bool RequireLocalFarmExist { get; set; }
Property Value
Type: System.Boolean
Returns Booleantrue if the cmdlet requires that a local farm exist.
Remarks
Defining this property has the same effect as invoking RequireLocalFarmExist() on SPCmdlet.