Partager via


SessionStateAliasEntry Constructors

Definition

Overloads

SessionStateAliasEntry(String, String)

Define an alias entry to add to the initial session state.

SessionStateAliasEntry(String, String, String)

Define an alias entry to add to the initial session state.

SessionStateAliasEntry(String, String, String, ScopedItemOptions)

Define an alias entry to add to the initial session state.

SessionStateAliasEntry(String, String)

Define an alias entry to add to the initial session state.

public:
 SessionStateAliasEntry(System::String ^ name, System::String ^ definition);
public:
 SessionStateAliasEntry(Platform::String ^ name, Platform::String ^ definition);
 SessionStateAliasEntry(std::wstring const & name, std::wstring const & definition);
public SessionStateAliasEntry (string name, string definition);
new System.Management.Automation.Runspaces.SessionStateAliasEntry : string * string -> System.Management.Automation.Runspaces.SessionStateAliasEntry
Public Sub New (name As String, definition As String)

Parameters

name
String

The name of the alias entry to add.

definition
String

The name of the command it resolves to.

Applies to

SessionStateAliasEntry(String, String, String)

Define an alias entry to add to the initial session state.

public:
 SessionStateAliasEntry(System::String ^ name, System::String ^ definition, System::String ^ description);
public:
 SessionStateAliasEntry(Platform::String ^ name, Platform::String ^ definition, Platform::String ^ description);
 SessionStateAliasEntry(std::wstring const & name, std::wstring const & definition, std::wstring const & description);
public SessionStateAliasEntry (string name, string definition, string description);
new System.Management.Automation.Runspaces.SessionStateAliasEntry : string * string * string -> System.Management.Automation.Runspaces.SessionStateAliasEntry
Public Sub New (name As String, definition As String, description As String)

Parameters

name
String

The name of the alias entry to add.

definition
String

The name of the command it resolves to.

description
String

A description of the purpose of the alias.

Applies to

SessionStateAliasEntry(String, String, String, ScopedItemOptions)

Define an alias entry to add to the initial session state.

public:
 SessionStateAliasEntry(System::String ^ name, System::String ^ definition, System::String ^ description, System::Management::Automation::ScopedItemOptions options);
public SessionStateAliasEntry (string name, string definition, string description, System.Management.Automation.ScopedItemOptions options);
new System.Management.Automation.Runspaces.SessionStateAliasEntry : string * string * string * System.Management.Automation.ScopedItemOptions -> System.Management.Automation.Runspaces.SessionStateAliasEntry
Public Sub New (name As String, definition As String, description As String, options As ScopedItemOptions)

Parameters

name
String

The name of the alias entry to add.

definition
String

The name of the command it resolves to.

description
String

A description of the purpose of the alias.

options
ScopedItemOptions

Options defining the scope visibility, readonly and constant.

Applies to