Request.YieldDynamicOption Method
Used by a provider to return the fields for a Metadata Definition. A cmdlet can use this to supply tab-completion for metadata to the user. This element is introduced in Windows PowerShell 5.0.
Namespace: Microsoft.OneGet.MetaProvider.PowerShell
Assembly: Microsoft.OneGet.MetaProvider.PowerShell (in Microsoft.OneGet.MetaProvider.PowerShell.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 the following values: 'provider', 'source', 'package', 'install'.
- name
The provider-defined name of the option.
- expectedType
One of the following values: 'string', 'int', 'path', 'switch'.
- isRequired
Whether 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.MetaProvider.PowerShell Namespace