다음을 통해 공유


IMetaDataEmit::SetFieldProps Method

Sets or updates the default value for the field referenced by the specified field token.

HRESULT SetFieldProps (
    [in]  mdFieldDef  fd, 
    [in]  DWORD       dwFieldFlags, 
    [in]  DWORD       dwCPlusTypeFlag, 
    [in]  void const  *pValue, 
    [in]  ULONG       cchValue 
);

Parameters

  • fd
    [in] The token for the target field.

  • dwFieldFlags
    [in] Field attributes.

  • dwCPlusTypeFlag
    [in] The ELEMENT_TYPE_* for the constant value.

  • pValue
    [in] The constant value for the field.

  • cchValue
    [in] The size, in Unicode characters, of pValue.

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

Concepts

IMetaDataEmit Interface

IMetaDataEmit2 Interface