Bagikan melalui


NativeImage Class

Definition

Describes an icon or main image for a native ad (that is, a NativeAdV2 object). The IconImage and MainImages properties return objects of this type. For a walkthrough that demonstrates how to use this class in your app, including code examples, see Native ads.

public ref class NativeImage sealed
/// [Windows.Foundation.Metadata.Activatable(1)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Version(1)]
/// [Windows.Foundation.Metadata.WebHostHidden]
class NativeImage final
[Windows.Foundation.Metadata.Activatable(1)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Version(1)]
[Windows.Foundation.Metadata.WebHostHidden]
public sealed class NativeImage
Public NotInheritable Class NativeImage
Inheritance
Object Platform::Object IInspectable NativeImage
Attributes

Additional features and requirements

Software Development Kit
Minimum supported OS
Windows 10 (10.0.10240.0)

Constructors

NativeImage()

Creates a new instance of the NativeImage class.

Properties

Height

Gets the height of the icon or main image for the native ad.

Url

Gets the source URI of the icon or main image file for the native ad.

Width

Gets the width of the icon or main image for the native ad.

Applies to

See also