propput 특성

[propput] 특성은 속성 설정 함수를 지정합니다. 속성의 이름은 함수*와 같아야 합니다.*

[propput [,optional-property-attributes]] return-type function-name( parameters);

매개 변수

optional-property-attributes

속성 특성이 0개 이상입니다.

return-type

원격 프로시저에서 반환된 데이터의 형식입니다.

function-name

원격 프로시저의 이름입니다.

parameters

원격 프로시저에 대한 매개 변수가 0개 이상입니다.

설명

[propput] 특성이 있는 함수에는 마지막 매개 변수인 [in] 특성이 있는 매개 변수도 있어야 합니다.

함수에 대해 [propget], [propput][propputref] 중 하나를 지정할 수 있습니다.

[propput] 특성이 있는 매개 변수가 포함된 함수의 매개 변수 목록에서 [lcid] 특성을 사용하는 경우 [lcid] 매개 변수는 마지막 매개 변수 중 두 번째여야 합니다.

플래그

INVOKE_PROPERTYPUT

interface InMyFace : IDispatch                         
{
    [propget, 
     helpstring("A meaningful comment.")] HRESULT Method1(
         [out, retval] int* ReturnVal); 

    [propput, 
     helpstring("Another meaningful comment.")] HRESULT Method1(
         [in] int Value);
}

참고 항목

MIDL과 MKTYPLIB의 차이점

ODL 파일 예제

ODL 파일 구문

propget

propputref

TYPEFLAGS