PrintTaskOptionDetails.CreateToggleOption(String, String) PrintTaskOptionDetails.CreateToggleOption(String, String) PrintTaskOptionDetails.CreateToggleOption(String, String) PrintTaskOptionDetails.CreateToggleOption(String, String) PrintTaskOptionDetails.CreateToggleOption(String, String) Method

Definition

Creates a PrintCustomToggleOptionDetails object to handle the display name and other parameters of the advanced print task option item.

public : PrintCustomToggleOptionDetails CreateToggleOption(Platform::String optionId, Platform::String displayName)
PrintCustomToggleOptionDetails CreateToggleOption(winrt::hstring optionId, winrt::hstring displayName) const;
public PrintCustomToggleOptionDetails CreateToggleOption(String optionId, String displayName)
Public Function CreateToggleOption(optionId As String, displayName As String) As PrintCustomToggleOptionDetails
var printCustomToggleOptionDetails = printTaskOptionDetails.createToggleOption(optionId, displayName);

Parameters

optionId
String String String

The ID of the print task option.

displayName
String String String

The display name of the print task option.

Returns

Additional features and requirements

Device family
Windows 10, version 1803 (introduced v10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)