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.

public:
 static bool IsVisible(System::Management::Automation::CommandOrigin origin, System::Management::Automation::CommandInfo ^ commandInfo);
public static bool IsVisible (System.Management.Automation.CommandOrigin origin, System.Management.Automation.CommandInfo commandInfo);
static member IsVisible : System.Management.Automation.CommandOrigin * System.Management.Automation.CommandInfo -> bool
Public Shared Function IsVisible (origin As CommandOrigin, commandInfo As CommandInfo) As Boolean

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

IsVisible(CommandOrigin, PSVariable)

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

public:
 static bool IsVisible(System::Management::Automation::CommandOrigin origin, System::Management::Automation::PSVariable ^ variable);
public static bool IsVisible (System.Management.Automation.CommandOrigin origin, System.Management.Automation.PSVariable variable);
static member IsVisible : System.Management.Automation.CommandOrigin * System.Management.Automation.PSVariable -> bool
Public Shared Function IsVisible (origin As CommandOrigin, variable As PSVariable) As Boolean

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

IsVisible(CommandOrigin, Object)

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

public:
 static bool IsVisible(System::Management::Automation::CommandOrigin origin, System::Object ^ valueToCheck);
public static bool IsVisible (System.Management.Automation.CommandOrigin origin, object valueToCheck);
static member IsVisible : System.Management.Automation.CommandOrigin * obj -> bool
Public Shared Function IsVisible (origin As CommandOrigin, valueToCheck As Object) As Boolean

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