SkillFeatureMapDescriptor.CreateValueAsync(Object, ISkillExecutionDevice) Method

Definition

Creates an ISkillFeatureValue of SkillFeatureKind.Map according to the key and value SkillElementKinds specified.

public:
 virtual Windows::Foundation::IAsyncOperation<Microsoft::AI::Skills::SkillInterfacePreview::ISkillFeatureValue ^> ^ CreateValueAsync(System::Object ^ value, Microsoft::AI::Skills::SkillInterfacePreview::ISkillExecutionDevice ^ device) = Microsoft::AI::Skills::SkillInterfacePreview::ISkillFeatureDescriptor::CreateValueAsync;
public Windows.Foundation.IAsyncOperation<Microsoft.AI.Skills.SkillInterfacePreview.ISkillFeatureValue> CreateValueAsync (object value, Microsoft.AI.Skills.SkillInterfacePreview.ISkillExecutionDevice device);
abstract member CreateValueAsync : obj * Microsoft.AI.Skills.SkillInterfacePreview.ISkillExecutionDevice -> Windows.Foundation.IAsyncOperation<Microsoft.AI.Skills.SkillInterfacePreview.ISkillFeatureValue>
override this.CreateValueAsync : obj * Microsoft.AI.Skills.SkillInterfacePreview.ISkillExecutionDevice -> Windows.Foundation.IAsyncOperation<Microsoft.AI.Skills.SkillInterfacePreview.ISkillFeatureValue>
Public Function CreateValueAsync (value As Object, device As ISkillExecutionDevice) As IAsyncOperation(Of ISkillFeatureValue)

Parameters

value
Object

The value from which to create the ISkillFeatureValue.

device
ISkillExecutionDevice

The execution device to be used by the skill which dictates the memory space.

Returns

Windows.Foundation.IAsyncOperation<ISkillFeatureValue>

The ISkillFeatureValue created from the value passed as an argument.

Implements

Remarks

value has to be an IReadOnlyDictionary<TYPE1, TYPE2> where TYPE1 and TYPE2 are the primitives that correlate to the SkillElementKind contained in the map.

Applies to