IPropertyValueStatics::CreateInspectable メソッド (windows.foundation.h)

指定した IInspectable オブジェクトを含む新しい IPropertyValue オブジェクトを作成します。

構文

HRESULT CreateInspectable(
  [in]          IInspectable *value,
  [out, retval] IInspectable **propertyValue
);

パラメーター

[in] value

種類: IInspectable*

格納するオブジェクト。

[out, retval] propertyValue

種類: IInspectable**

を含む新しいオブジェクトへのポインター。

戻り値

種類: HRESULT

このメソッドは、これらの値のいずれかを返すことができます。

リターン コード 説明
S_OK
プロパティ値が正常に作成されました。
E_POINTER
valueNULL です
E_OUTOFMEMORY
IPropertyValue オブジェクトを作成できませんでした。

解説

CreateInspectable メソッドを使用して、IPropertyValue オブジェクトに値を格納します。 プロパティ ストアに IPropertyValue オブジェクトを追加できます。 GetInspectable メソッドを使用して、IPropertyValue オブジェクトから値を取得します。

要件

   
サポートされている最小のクライアント Windows 8
サポートされている最小のサーバー Windows Server 2012
対象プラットフォーム Windows
ヘッダー windows.foundation.h

関連項目

IPropertyValue::GetInspectable

IPropertyValueStatics