Skip to main content

Get-ObjectProperty

SYNOPSISโ€‹

Get a property from any object.

SYNTAXโ€‹

Get-ObjectProperty [-InputObject] <Object> [-PropertyName] <String> [[-ArgumentList] <Object[]>]
[<CommonParameters>]

DESCRIPTIONโ€‹

Get a property from any object.

EXAMPLESโ€‹

EXAMPLE 1โ€‹

Get-ObjectProperty -InputObject $Record -PropertyName 'StringData' -ArgumentList @(1)

PARAMETERSโ€‹

-InputObjectโ€‹

Specifies an object which has properties that can be retrieved.

Type: Object
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PropertyNameโ€‹

Specifies the name of a property to retrieve.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ArgumentListโ€‹

Argument to pass to the property being retrieved.

Type: Object[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParametersโ€‹

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTSโ€‹

Noneโ€‹

You cannot pipe objects to this function.โ€‹

OUTPUTSโ€‹

System.Object.โ€‹

Returns the value of the property being retrieved.โ€‹

NOTESโ€‹

This is an internal script function and should typically not be called directly.

https://psappdeploytoolkit.com