PSObjectExtensionsGetPropertiesAsString Method

Returns a string representation for the properties and its values of the source PSObject object.

Definition

Namespace: DevCase.Extensions.PSObjectExtensions
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string GetPropertiesAsString(
	this PSObject pso
)

Parameters

pso  PSObject
The source PSObject object.

Return Value

String
The resulting string that represents the properties and its values of the source PSObject object.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PSObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

Note: To use this functionality you need to install this nuget package:

System.Management.Automation

See Also