GetAFUnitOfMeasure Class
- Last UpdatedDec 15, 2025
- 3 minute read
Get an AF Unit of Measure
The Get-AFUnitOfMeasure cmdlet gets an existing AF Unit of Measure from an AF Server.
Inheritance Hierarchy
InternalCommand
Cmdlet
PSCmdlet
OSIsoft.PowerShellOSICmdletBase
OSIsoft.PowerShellGetAFUnitOfMeasure
Namespace: OSIsoft.PowerShell
Assembly: OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 2.2.3.0 (2.2.3.952)
Syntax
[CmdletAttribute("Get", "AFUnitOfMeasure", DefaultParameterSetName = "Name", SupportsShouldProcess = true)] public class GetAFUnitOfMeasure : OSICmdletBase
<CmdletAttribute("Get", "AFUnitOfMeasure", DefaultParameterSetName := "Name", SupportsShouldProcess := true)> Public Class GetAFUnitOfMeasure Inherits OSICmdletBase Dim instance As GetAFUnitOfMeasure
[CmdletAttribute(L"Get", L"AFUnitOfMeasure", DefaultParameterSetName = L"Name", SupportsShouldProcess = true)] public ref class GetAFUnitOfMeasure : public OSICmdletBase
[<CmdletAttribute("Get", "AFUnitOfMeasure", DefaultParameterSetName = "Name", SupportsShouldProcess = true)>] type GetAFUnitOfMeasure = class inherit OSICmdletBase end
The GetAFUnitOfMeasure type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| GetAFUnitOfMeasure |
Properties
| Name | Description | |
|---|---|---|
| AFServer | AF Server from which to get the AF Unit of Measure | |
| ID | ID of the AF Unit of Measure to get | |
| Index | Index of the AF Category to get | |
| Name | Name of the AF Unit of Measure to get. Wildcards are accepted. | |
| Refresh | Refresh container before accessing |
Examples
Get-AFUnitOfMeasure -Name "Meter" -AFServer $afServerWhere:
$afServer = Get-AFServer -Name PIAF1
Gets the existing AF Unit of Measure "Meter" from the AF Server "PIAF1".
Examples
Get-UnitOfMeasure -Name "Degree*" -AFServer $afServerWhere:
$afServer = Get-AFServer -Name PIAF1
Gets all AF Units of Measure matching the name "Degree*", for example: degree fahrenheit, degree celsius, etc on AF Server "PIAF1".
Examples
Get-UnitOfMeasure -Name "*" -AFServer $afServerWhere:
$afServer = Get-AFServer -Name PIAF1
Gets all AF Units of Measure on AF Server "PIAF1".