Share via


PropertyValue.CreateInspectable(Object) Method

Definition

Supplies the property value representation of an inspectable object. Since an object is a reference type, it is also a valid property value and does not need to be boxed. Instead, this method returns the object provided without modification. An object can be set as a property value without first calling this method.

public:
 static Platform::Object ^ CreateInspectable(Platform::Object ^ value);
 static IInspectable CreateInspectable(IInspectable const& value);
public static object CreateInspectable(object value);
function createInspectable(value)
Public Shared Function CreateInspectable (value As Object) As Object

Parameters

value
Object

Platform::Object

IInspectable

The object to store in the property value. The value must be non-null.

Returns

Object

Platform::Object

IInspectable

The property value.

Applies to