共用方式為


ScriptInfo Class

Definition

The command information for scripts that are directly executable by PowerShell.

public ref class ScriptInfo : System::Management::Automation::CommandInfo
public class ScriptInfo : System.Management.Automation.CommandInfo
type ScriptInfo = class
    inherit CommandInfo
Public Class ScriptInfo
Inherits CommandInfo
Inheritance
ScriptInfo

Properties

CommandType

Gets the type of the command.

(Inherited from CommandInfo)
Definition

Gets the definition of the ScriptBlock for the script. This is the ToString() of the ScriptBlock.

Module

The module that defines this cmdlet. This will be null for commands that are not defined in the context of a module.

(Inherited from CommandInfo)
ModuleName

The module name of this command. It will be empty for commands not imported from either a module or snapin.

(Inherited from CommandInfo)
Name

Gets the name of the command.

(Inherited from CommandInfo)
OutputType

The output type(s) is specified in the script block.

Parameters

Return the parameters for this command.

(Inherited from CommandInfo)
ParameterSets

Gets the information about the parameters and parameter sets for this command.

(Inherited from CommandInfo)
RemotingCapability

The remoting capabilities of this cmdlet, when exposed in a context with ambient remoting.

(Inherited from CommandInfo)
ScriptBlock

Gets the ScriptBlock that represents the implementation of the script.

Source

Gets the source of the command (shown by default in Get-Command)

(Inherited from CommandInfo)
Version

Gets the source version (shown by default in Get-Command)

(Inherited from CommandInfo)
Visibility

Indicates if the command is to be allowed to be executed by a request external to the runspace.

(Inherited from CommandInfo)

Methods

ResolveParameter(String)

Resolves a full, shortened, or aliased parameter name to the actual cmdlet parameter name, using PowerShell's standard parameter resolution algorithm.

(Inherited from CommandInfo)
ToString()

For diagnostic purposes.

Applies to