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

public abstract bool YieldDynamicOption (
	int category,
	string name,
	int expectedType,
	bool isRequired
)
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.

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


Show: