SPCmdlet.GetSwitch method
Retrieves a SwitchParameter object, if one is found.
Namespace: Microsoft.SharePoint.PowerShell
Assembly: Microsoft.SharePoint.PowerShell (in Microsoft.SharePoint.PowerShell.dll)
Syntax
'Declaration
Protected Function GetSwitch ( _
fieldName As String _
) As SwitchParameter
'Usage
Dim fieldName As String
Dim returnValue As SwitchParameter
returnValue = Me.GetSwitch(fieldName)
protected SwitchParameter GetSwitch(
string fieldName
)
Parameters
fieldName
Type: System.StringA string that provides the field name.
Return value
Type: SwitchParameter
Returns a SwitchParameter object, if one is found. Otherwise, this method returns a SwitchParameter object with a value of false.