Share via


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] 특성 중 하나를 지정할 수 있습니다.

플래그

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);
}

참고 항목

MIDL을 사용하여 형식 라이브러리 생성

in

ODL 파일 예제

ODL 파일 구문

propget

propput

TYPEFLAGS