PrintSupportEnterpriseManagementUIEventArgs Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides activation args that allow print support apps to query and update properties of Internet Printing Protocol (IPP) printer devices.
public ref class PrintSupportEnterpriseManagementUIEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 1245184)]
/// [Windows.Foundation.Metadata.Experimental]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PrintSupportEnterpriseManagementUIEventArgs final
/// [Windows.Foundation.Metadata.Experimental]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 1310720)]
class PrintSupportEnterpriseManagementUIEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 1245184)]
[Windows.Foundation.Metadata.Experimental]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class PrintSupportEnterpriseManagementUIEventArgs
[Windows.Foundation.Metadata.Experimental]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 1310720)]
public sealed class PrintSupportEnterpriseManagementUIEventArgs
Public NotInheritable Class PrintSupportEnterpriseManagementUIEventArgs
- Inheritance
- Attributes
Windows requirements
| Requirements | Description |
|---|---|
| Device family |
Windows 11, version 24H2 (introduced in 10.0.26100.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced in v19.0)
|
Examples
The following example illustrates the use of PrintSupportEnterpriseManagementUIEventArgs to get a reference to an IPP printer and then obtain the device properties associated with the printer. In this example, app-defined logic navigates the user to different UI depending on current state of the device properties.
protected override void OnActivated(IActivatedEventArgs args)
{
if (args.Kind == ActivationKind.PrintSupportEnterpriseManagementUI)
{
var managementUIArgs = (PrintSupportEnterpriseManagementUIEventArgs)args;
IppPrintDevice ippPrintDevice = managementUIArgs.Printer;
ValueSet deviceProperties = ippPrintDevice.GetDeviceProperties();
var rootFrame = new Frame();
if (AreDevicePropertiesIntialized(deviceProperties))
{
rootFrame.Navigate(typeof(PrinterManagementView), ippPrintDevice);
}
else
{
rootFrame.Navigate(typeof(PrinterManagementIntializeView), ippPrintDevice);
}
Window.Current.Content = rootFrame;
}
}
Remarks
Get an instance of this class by casting the IActivatedEventArgs passed into the OnActivated event. Verify that the activation Kind is PrintSupportEnterpriseManagementUI before casting the args object.
Properties
| Name | Description |
|---|---|
| Printer | |