Share via


PrintTaskRequest.CreatePrintTask Method

Definition

Creates a new PrintTask which indicates that the app has content to be printed.

public:
 virtual PrintTask ^ CreatePrintTask(Platform::String ^ title, PrintTaskSourceRequestedHandler ^ handler) = CreatePrintTask;
PrintTask CreatePrintTask(winrt::hstring const& title, PrintTaskSourceRequestedHandler const& handler);
public PrintTask CreatePrintTask(string title, PrintTaskSourceRequestedHandler handler);
function createPrintTask(title, handler)
Public Function CreatePrintTask (title As String, handler As PrintTaskSourceRequestedHandler) As PrintTask

Parameters

title
String

Platform::String

winrt::hstring

Title for the print task.

handler
PrintTaskSourceRequestedHandler

Pointer to a PrintTaskSourceRequestedHandler delegate for the print task.

Returns

Pointer to the print task that was created.

Applies to

See also