RuntimeDefinedParameter Class
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Represents a dynamic parameter that is constructed at runtime. The Windows PowerShell runtime adds this parameter to the parameter list of a cmdlet or function when some pre-defined condition is met, such as a specific argument is supplied for some other parameter.
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
System.Management.Automation.RuntimeDefinedParameter
System.Management.Automation Namespace
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
Usage
Visual Basic
Dim instance As RuntimeDefinedParameter
Syntax
Visual Basic
Public Class RuntimeDefinedParameter
C#
public class RuntimeDefinedParameter
C++
public ref class RuntimeDefinedParameter
J#
public class RuntimeDefinedParameter
JScript
public class RuntimeDefinedParameter
Remarks
To add a dynamic parameter to a function, use the DynamicParam keyword. The syntax is as follows.
DynamicParam {<ScriptBlock>}
Inheritance Hierarchy
System.Object
System.Management.Automation.RuntimeDefinedParameter
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Target Platforms
Windows Developer Preview, Windows Server Developer PreviewSee Also
Reference
RuntimeDefinedParameter MembersSystem.Management.Automation Namespace
Other Resources
Windows PowerShell SDKSend comments about this topic to Microsoft.