Request.YieldDynamicOption Method (Int32, String, Int32, Boolean)
Used by a provider to return the fields for a Metadata Definition The cmdlets can use this to supply tab-completion for metadata to the user. 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 Integer
Dim name As String
Dim expectedType As Integer
Dim isRequired As Boolean
Dim returnValue As Boolean
returnValue = instance.YieldDynamicOption(category, name, expectedType, isRequired)
Syntax
'Declaration
Public MustOverride Function YieldDynamicOption ( _
category As Integer, _
name As String, _
expectedType As Integer, _
isRequired As Boolean _
) As Boolean
public abstract bool YieldDynamicOption (
int category,
string name,
int expectedType,
bool isRequired
)
public:
virtual bool YieldDynamicOption (
int category,
String^ name,
int expectedType,
bool isRequired
) abstract
public abstract boolean YieldDynamicOption (
int category,
String name,
int expectedType,
boolean isRequired
)
public abstract function YieldDynamicOption (
category : int,
name : String,
expectedType : int,
isRequired : boolean
) : boolean
Parameters
- category
one of ['provider', 'source', 'package', 'install']
- name
the provider-defined name of the option
- expectedType
one of ['string','int','path','switch']
- isRequired
if the parameter is mandatory
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