Edit

Share via


IconData Constructors

IconData(IRandomAccessStreamReference) Constructor

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

Initializes a new instance of the IconData class with the Data property set to data.

public IconData(IRandomAccessStreamReference data)
    {
        Data = data;
    }

Parameters

data Windows.Storage.Streams.IRandomAccessStreamReference

The icon data as a stream reference. This property is used to load the icon data from a stream.

IconData(String) Constructor

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

Initializes a new instance of the IconData class with the Icon property set to icon.

public IconData(string? icon)
    {
        Icon = icon;
    }

Parameters

icon String

The icon URI. This property is used to load the icon from a URI.