Jaa


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:
 virtual PrintCustomToggleOptionDetails ^ CreateToggleOption(Platform::String ^ optionId, Platform::String ^ displayName) = CreateToggleOption;
PrintCustomToggleOptionDetails CreateToggleOption(winrt::hstring const& optionId, winrt::hstring const& displayName);
public PrintCustomToggleOptionDetails CreateToggleOption(string optionId, string displayName);
function createToggleOption(optionId, displayName)
Public Function CreateToggleOption (optionId As String, displayName As String) As PrintCustomToggleOptionDetails

Parameters

optionId
String

Platform::String

winrt::hstring

The ID of the print task option.

displayName
String

Platform::String

winrt::hstring

The display name of the print task option.

Returns

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Applies to