Partager via


IMetaDataEmit::SetPropertyProps Method

Sets the features stored in metadata for a property defined by a prior call to IMetaDataEmit::DefineProperty Method.

HRESULT SetPropertyProps ( 
    [in]  mdProperty      pr, 
        [in]  DWORD           dwPropFlags, 
    [in]  DWORD           dwCPlusTypeFlag, 
        [in]  void const      *pValue, 
    [in]  ULONG           cchValue, 
    [in]  mdMethodDef     mdSetter, 
    [in]  mdMethodDef     mdGetter, 
    [in]  mdMethodDef     rmdOtherMethods[] 
);

Parameters

Parameter Description

pr

[in] The token for the property to be changed

dwPropFlags

[in] Property flags.

dwCPlusTypeFlag

[in] The type of the property's default value.

pValue

[in] The default value for the property.

cchValue

[in] The count of (Unicode) characters in pValue.

mdSetter

[in] The method that sets the property value.

mdGetter

[in] The method that gets the property value.

rmdOtherMethods[]

[in] An array of other methods associated with the property. Terminate this array with an mdTokenNil token.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: Cor.h

Library: Used as a resource in Mscoree.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Reference

IMetaDataEmit Interface
IMetaDataEmit2 Interface