Dela via


BitmapPropertySet Class

Definition

Represents a property set of BitmapTypedValue objects.

public ref class BitmapPropertySet sealed : IIterable<IKeyValuePair<Platform::String ^, BitmapTypedValue ^> ^>, IMap<Platform::String ^, BitmapTypedValue ^>
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class BitmapPropertySet final : IIterable<IKeyValuePair<winrt::hstring, BitmapTypedValue const&>>, IMap<winrt::hstring, BitmapTypedValue const&>
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class BitmapPropertySet final : IIterable<IKeyValuePair<winrt::hstring, BitmapTypedValue const&>>, IMap<winrt::hstring, BitmapTypedValue const&>
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class BitmapPropertySet : IDictionary<string,BitmapTypedValue>, IEnumerable<KeyValuePair<string,BitmapTypedValue>>
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class BitmapPropertySet : IDictionary<string,BitmapTypedValue>, IEnumerable<KeyValuePair<string,BitmapTypedValue>>
function BitmapPropertySet()
Public NotInheritable Class BitmapPropertySet
Implements IDictionary(Of String, BitmapTypedValue), IEnumerable(Of KeyValuePair(Of String, BitmapTypedValue))
Inheritance
Object Platform::Object IInspectable BitmapPropertySet
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

BitmapPropertySet is a map with keys of type String and values of type BitmapTypedValue. Each String key is either a Windows property key or native metadata query.

Collection member lists

For JavaScript, BitmapPropertySet supports using an index to access items.

Constructors

BitmapPropertySet()

Creates and initializes a new instance of the bitmap property set.

Properties

Size

Gets the number of items contained in the property set.

Methods

Clear()

Removes all items from the property set.

First()

Returns an iterator to enumerate the items in the property set.

GetView()

Gets an immutable view of the property set.

HasKey(String)

Indicates whether the property set has an item with the specified key.

Insert(String, BitmapTypedValue)

Adds an item to the property set.

Lookup(String)

Retrieves the value for the specified key.

Remove(String)

Removes an item from the property set.

Applies to

See also