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