EN
Данное содержимое не доступно на вашем языке, используйте версию на английском языке.

IRecordInfo::PutFieldNoCopy method

Passes ownership of the data to the assigned field by placing the actual data into the field.PutFieldNoCopy is useful for saving resources because it allows you to place your data directly into a record field. PutFieldNoCopy differs from PutField because it does not copy the data referenced by the variant.

Syntax


HRESULT PutFieldNoCopy(
  [in]       ULONG wFlags,
  [in, out]  PVOID pvData,
  [in]       LPCOLESTR szFieldName,
  [in]       VARIANT *pvarField
);

Parameters

wFlags [in]

The only legal values for the wFlags parameter is INVOKE_PROPERTYPUT or INVOKE_PROPERTYPUTREF.

pvData [in, out]

An instance of the record described by IRecordInfo.

szFieldName [in]

The name of the field of the record.

pvarField [in]

The variant to be put into the field.

Return value

This method can return one of these values.

Return codeDescription
S_OK

Success.

E_INVALIDARG

One or more of the arguments is not valid.

 

Requirements

IDL

OaIdl.idl

See also

IRecordInfo

 

 

Добавления сообщества

ДОБАВИТЬ
Показ:
© 2014 Microsoft