SessionState.IsVisible SessionState.IsVisible SessionState.IsVisible Method

Definition

Overloads

IsVisible(CommandOrigin, CommandInfo) IsVisible(CommandOrigin, CommandInfo)

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

IsVisible(CommandOrigin, PSVariable) IsVisible(CommandOrigin, PSVariable) IsVisible(CommandOrigin, PSVariable)

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

IsVisible(CommandOrigin, Object) IsVisible(CommandOrigin, Object) IsVisible(CommandOrigin, Object)

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

IsVisible(CommandOrigin, CommandInfo) 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);
static member IsVisible : System.Management.Automation.CommandOrigin * System.Management.Automation.CommandInfo -> bool
Parameters
origin
CommandOrigin CommandOrigin CommandOrigin

The origin to check against

commandInfo
CommandInfo CommandInfo CommandInfo

The command to check

Returns

Returns true if the object is visible, false otherwise

IsVisible(CommandOrigin, PSVariable) IsVisible(CommandOrigin, PSVariable) 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);
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 CommandOrigin CommandOrigin

The origin to check against

variable
PSVariable PSVariable PSVariable

The variable to check

Returns

Returns true if the object is visible, false otherwise

IsVisible(CommandOrigin, Object) IsVisible(CommandOrigin, Object) IsVisible(CommandOrigin, Object)

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

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 CommandOrigin CommandOrigin

The origin to check against

valueToCheck
Object Object Object

The object to check

Returns

Returns true if the object is visible, false otherwise

Applies to