IMetaDataEmit::SetPropertyProps Method

为先前调用 DefineProperty 方法定义的属性设置存储在元数据中的功能。

Syntax

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

pr [in]要更改的属性的令牌

dwPropFlags [in]属性标志。

dwCPlusTypeFlag [in]属性的默认值的类型。

pValue [in]属性的默认值。

cchValue [in]中的 pValue(Unicode) 字符计数。

mdSetter [in]设置属性值的方法。

mdGetter [in]获取属性值的方法。

rmdOtherMethods[] [in]与属性关联的其他方法的数组。 使用 mdTokenNil 令牌终止此数组。

Requirements

平台: 请参阅 .NET 支持的作系统

Header: Cor.h

Library: CorGuids.lib

See also