Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

RuntimeDefinedParameter Class

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.dll)
'Usage
Dim instance As RuntimeDefinedParameter

public class RuntimeDefinedParameter
public class RuntimeDefinedParameter
public class RuntimeDefinedParameter

To add a dynamic parameter to a function, use the DynamicParam keyword. The syntax is as follows.

DynamicParam {<ScriptBlock>}


System.Object
  System.Management.Automation.RuntimeDefinedParameter
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.