propputref 属性
[propputref] 属性は、値の代わりに参照を使用するプロパティ設定関数を指定します。
[propputref [,optional-property-attributes]] return-type function-name( parameters);
パラメーター
-
optional-property-attributes
-
0 個以上のプロパティ属性。
-
return-type
-
リモート プロシージャによって返されるデータの型。
-
function-name
-
リモート プロシージャの名前。
-
parameters
-
リモート プロシージャに対する 0 個以上のパラメーター。
解説
[propputref] 属性を持つ関数には、最後のパラメーターとして [in] 属性を持つポインターも含まれている必要があります。
このプロパティには、関数と同じ名前が必要です。 関数には、最大で [propget]、 [propput] 属性、および [propputref] 属性のいずれかを指定できます。
Flags
INVOKE_PROPERTYPUTREF
例
interface InMyFace : IDispatch
{
[propget,
helpstring("A meaningful comment."),
id(1)] HRESULT Method2([out, retval] YourInterface** ReturnVal);
[propputref,
helpstring("Another meaningful comment."),
id(1)] HRESULT Method2([in] YourPoint* Point);
}
関連項目