BitmapTypedValue 类

定义

一个值以及一个指定其数据类型的枚举。

public ref class BitmapTypedValue sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Graphics.Imaging.IBitmapTypedValueFactory, 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 BitmapTypedValue final
/// [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(Windows.Graphics.Imaging.IBitmapTypedValueFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class BitmapTypedValue final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Graphics.Imaging.IBitmapTypedValueFactory), 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 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(typeof(Windows.Graphics.Imaging.IBitmapTypedValueFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class BitmapTypedValue
function BitmapTypedValue(value, type)
Public NotInheritable Class BitmapTypedValue
继承
Object Platform::Object IInspectable BitmapTypedValue
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

BitmapTypedValue 是不可变的。 若要更改值或数据类型,必须创建一个新的 对象。

构造函数

BitmapTypedValue(Object, PropertyType)

创建新的 BitmapTypedValue 对象。

属性

Type

获取存储值的 PropertyType

Value

获取存储的值。

适用于