Sdílet prostřednictvím


IDynamicParameters Interface

Definition

An interface that a Cmdlet or CmdletProvider must implement to indicate that it has dynamic parameters.

public interface class IDynamicParameters
public interface IDynamicParameters
[System.Runtime.CompilerServices.NullableContext(2)]
public interface IDynamicParameters
type IDynamicParameters = interface
[<System.Runtime.CompilerServices.NullableContext(2)>]
type IDynamicParameters = interface
Public Interface IDynamicParameters
Derived
Attributes

Remarks

Dynamic parameters allow a Cmdlet or CmdletProvider to define additional parameters based on the value of the formal arguments. For example, the parameters of "set-itemproperty" for the file system provider vary depending on whether the target object is a file or directory.

Methods

GetDynamicParameters()

Returns an instance of an object that defines the dynamic parameters for this Cmdlet or CmdletProvider.

Applies to

See also