Share via


IMetaDataImport::GetPropertyProps Method

Gets the metadata for the property represented by the specified token.

HRESULT GetPropertyProps (
    mdProperty        prop,
    mdTypeDef         *pClass, 
    LPCWSTR           szProperty, 
    ULONG             cchProperty, 
    ULONG             *pchProperty, 
    DWORD             *pdwPropFlags, 
    PCCOR_SIGNATURE   *ppvSig, 
    ULONG             *pbSig, 
    DWORD             *pdwCPlusTypeFlag, 
    UVCP_CONSTANT     *ppDefaultValue,
    ULONG             *pcchDefaultValue,
    mdMethodDef       *pmdSetter, 
    mdMethodDef       *pmdGetter, 
    mdMethodDef       rmdOtherMethod[],
    ULONG             cMax, 
    ULONG             *pcOtherMethod 
);

Parameters

Parameter Description

prop

[in] A token that represents the property to return metadata for.

pClass

[out] A pointer to the TypeDef token that represents the type that implements the property.

szProperty

[out] A buffer to hold the property name.

cchProperty

[in] The size in wide characters of szProperty.

pchProperty

[out] The number of wide characters returned in szProperty.

pdwPropFlags

[out] A pointer to any attribute flags applied to the property. This value is a bitmask from the CorPropertyAttr Enumeration enumeration.

ppvSig

[out] A pointer to the metadata signature of the property.

pbSig

[out] The number of bytes returned in ppvSig.

pdwCPlusTypeFlag

[out] A flag specifying the type of the constant that is the default value of the property. This value is from the CorElementType Enumeration enumeration.

ppDefaultValue

[out] A pointer to the bytes that store the default value for this property.

pcchDefaultValue

[out] The size in wide characters of ppDefaultValue, if pdwCPlusTypeFlag is ELEMENT_TYPE_STRING; otherwise, this value is not relevant. In that case, the length of ppDefaultValue is inferred from the type that is specified by pdwCPlusTypeFlag.

pmdSetter

[out] A pointer to the MethodDef token that represents the set accessor method for the property.

pmdGetter

[out] A pointer to the MethodDef token that represents the get accessor method for the property.

rmdOtherMethod

[out] An array of MethodDef tokens that represent other methods associated with the property.

cMax

[in] The maximum size of the rmdOtherMethod array. If you do not provide an array large enough to hold all the methods, they are skipped without warning.

pcOtherMethod

[out] The number of MethodDef tokens returned in rmdOtherMethod.

Requirements

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

Header: Cor.h

Library: Included as a resource in Mscoree.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Reference

IMetaDataImport Interface
IMetaDataImport2 Interface