FunctionInfo FunctionInfo FunctionInfo Class


Provides information about a function that is stored in session state.

public class FunctionInfo : System.Management.Automation.CommandInfo
type FunctionInfo = class
    inherit CommandInfo
    interface IScriptCommandInfo
Public Class FunctionInfo
Inherits CommandInfo


CmdletBinding CmdletBinding CmdletBinding

Returns true if this function uses cmdlet binding mode for its parameters; otherwise returns false.

CommandType CommandType CommandType Inherited from CommandInfo
DefaultParameterSet DefaultParameterSet DefaultParameterSet

Gets the name of the default parameter set. Returns null if this function doesn't use cmdlet parameter binding or if the default parameter set wasn't specified.

Definition Definition Definition

Gets the definition of the function which is the ToString() of the ScriptBlock that implements the function.

Description Description Description

Gets or sets the description associated with the function

HelpFile HelpFile HelpFile

Gets the help file path for the function.

Module Module Module Inherited from CommandInfo
ModuleName ModuleName ModuleName Inherited from CommandInfo
Name Name Name Inherited from CommandInfo
Noun Noun Noun

Gets the noun of the function.

Options Options Options

Gets or sets the scope options for the function.

OutputType OutputType OutputType

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

ParameterSets ParameterSets ParameterSets Inherited from CommandInfo
Parameters Parameters Parameters Inherited from CommandInfo
RemotingCapability RemotingCapability RemotingCapability Inherited from CommandInfo
ScriptBlock ScriptBlock ScriptBlock

Gets the ScriptBlock which is the implementation of the function

Source Source Source Inherited from CommandInfo
Verb Verb Verb

Gets the verb of the function

Version Version Version Inherited from CommandInfo
Visibility Visibility Visibility Inherited from CommandInfo


ResolveParameter(String) ResolveParameter(String) ResolveParameter(String) Inherited from CommandInfo
ToString() ToString() ToString() Inherited from CommandInfo
Update(FunctionInfo, Boolean, ScopedItemOptions, String) Update(FunctionInfo, Boolean, ScopedItemOptions, String) Update(FunctionInfo, Boolean, ScopedItemOptions, String)

Applies to