Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Defines a custom attribute based upon its name. These attributes are held in the symbol store, unlike metadata custom attributes.
Syntax
HRESULT SetSymAttribute(
[in] mdToken parent,
[in] const WCHAR *name,
[in] ULONG32 cData,
[in, size_is(cData)] unsigned char data[]);
Parameters
parent
[in] The metadata token for which the attribute is being defined.
name
[in] A pointer to a WCHAR that contains the attribute name.
cData
[in] A ULONG32 that indicates the size of the data array.
data
[in] The attribute value.
Return Value
S_OK if the method succeeds; otherwise, E_FAIL or some other error code.
Requirements
Header: CorSym.idl, CorSym.h