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)

Usage

'Usage
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)

Syntax

'Declaration
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
)
public:
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

Parameters

  • 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.

Platforms

Target Platforms

See Also

Reference

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