SessionStateFormatEntry Constructors

Definition

Overloads

SessionStateFormatEntry(ExtendedTypeDefinition)

Loads all the format data specified in the typeDefinition.

SessionStateFormatEntry(FormatTable)

Loads all the format data specified in the formatTable.

SessionStateFormatEntry(String)

Loads the entire formats file.

SessionStateFormatEntry(ExtendedTypeDefinition)

Loads all the format data specified in the typeDefinition.

C++
public:
 SessionStateFormatEntry(System::Management::Automation::ExtendedTypeDefinition ^ typeDefinition);

Parameters

typeDefinition
ExtendedTypeDefinition

Applies to

PowerShell SDK 7.4.0 and other versions
Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

SessionStateFormatEntry(FormatTable)

Loads all the format data specified in the formatTable.

C++
public:
 SessionStateFormatEntry(System::Management::Automation::Runspaces::FormatTable ^ formattable);

Parameters

formattable
FormatTable

Applies to

PowerShell SDK 7.4.0 and other versions
Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

SessionStateFormatEntry(String)

Loads the entire formats file.

C++
public:
 SessionStateFormatEntry(System::String ^ fileName);

Parameters

fileName
String

Applies to

PowerShell SDK 7.4.0 and other versions
Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0