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