SessionStateFormatEntry Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
Loads all the format data specified in the typeDefinition.
C++
public:
SessionStateFormatEntry(System::Management::Automation::ExtendedTypeDefinition ^ typeDefinition);
public SessionStateFormatEntry (System.Management.Automation.ExtendedTypeDefinition typeDefinition);
new System.Management.Automation.Runspaces.SessionStateFormatEntry : System.Management.Automation.ExtendedTypeDefinition -> System.Management.Automation.Runspaces.SessionStateFormatEntry
Public Sub New (typeDefinition As ExtendedTypeDefinition)
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 |
Loads all the format data specified in the formatTable.
C++
public:
SessionStateFormatEntry(System::Management::Automation::Runspaces::FormatTable ^ formattable);
public SessionStateFormatEntry (System.Management.Automation.Runspaces.FormatTable formattable);
new System.Management.Automation.Runspaces.SessionStateFormatEntry : System.Management.Automation.Runspaces.FormatTable -> System.Management.Automation.Runspaces.SessionStateFormatEntry
Public Sub New (formattable As 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 |
Loads the entire formats file.
C++
public:
SessionStateFormatEntry(System::String ^ fileName);
public:
SessionStateFormatEntry(Platform::String ^ fileName);
SessionStateFormatEntry(std::wstring const & fileName);
public SessionStateFormatEntry (string fileName);
new System.Management.Automation.Runspaces.SessionStateFormatEntry : string -> System.Management.Automation.Runspaces.SessionStateFormatEntry
Public Sub New (fileName As String)
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 |