Прочитај на енглеском

Делите путем


SessionState.IsVisible Method

Definition

Overloads

IsVisible(CommandOrigin, CommandInfo)

Checks the visibility of an object based on the command origin argument.

IsVisible(CommandOrigin, PSVariable)

Checks the visibility of an object based on the command origin argument.

IsVisible(CommandOrigin, Object)

Checks the visibility of an object based on the command origin argument.

IsVisible(CommandOrigin, CommandInfo)

Checks the visibility of an object based on the command origin argument.

C++
public:
 static bool IsVisible(System::Management::Automation::CommandOrigin origin, System::Management::Automation::CommandInfo ^ commandInfo);

Parameters

origin
CommandOrigin

The origin to check against.

commandInfo
CommandInfo

The command to check.

Returns

Returns true if the object is visible, false otherwise.

Applies to

PowerShell SDK 7.4.0 и друге верзије
Производ Верзије
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

IsVisible(CommandOrigin, PSVariable)

Checks the visibility of an object based on the command origin argument.

C++
public:
 static bool IsVisible(System::Management::Automation::CommandOrigin origin, System::Management::Automation::PSVariable ^ variable);

Parameters

origin
CommandOrigin

The origin to check against.

variable
PSVariable

The variable to check.

Returns

Returns true if the object is visible, false otherwise.

Applies to

PowerShell SDK 7.4.0 и друге верзије
Производ Верзије
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

IsVisible(CommandOrigin, Object)

Checks the visibility of an object based on the command origin argument.

C++
public:
 static bool IsVisible(System::Management::Automation::CommandOrigin origin, System::Object ^ valueToCheck);

Parameters

origin
CommandOrigin

The origin to check against.

valueToCheck
Object

The object to check.

Returns

Returns true if the object is visible, false otherwise.

Applies to

PowerShell SDK 7.4.0 и друге верзије
Производ Верзије
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0