Request.YieldDynamicOption Method (OptionCategory, String, OptionType, Boolean)

This element is introduced in Windows PowerShell 5.0.

Namespace: Microsoft.OneGet.PackageProvider.Bootstrap
Assembly: Microsoft.OneGet.PackageProvider.Bootstrap (in Microsoft.OneGet.PackageProvider.Bootstrap.dll)


Dim instance As Request
Dim category As OptionCategory
Dim name As String
Dim expectedType As OptionType
Dim isRequired As Boolean
Dim returnValue As Boolean

returnValue = instance.YieldDynamicOption(category, name, expectedType, isRequired)


Public Function YieldDynamicOption ( _
    category As OptionCategory, _
    name As String, _
    expectedType As OptionType, _
    isRequired As Boolean _
) As Boolean
public bool YieldDynamicOption (
    OptionCategory category,
    string name,
    OptionType expectedType,
    bool isRequired
bool YieldDynamicOption (
    OptionCategory category, 
    String^ name, 
    OptionType expectedType, 
    bool isRequired
public boolean YieldDynamicOption (
    OptionCategory category, 
    String name, 
    OptionType expectedType, 
    boolean isRequired
public function YieldDynamicOption (
    category : OptionCategory, 
    name : String, 
    expectedType : OptionType, 
    isRequired : boolean
) : boolean


  • category
  • name
  • expectedType
  • isRequired

Return Value

Returns Boolean.

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.


Target Platforms

See Also


Request Class
Request Members
Microsoft.OneGet.PackageProvider.Bootstrap Namespace