ISymUnmanagedWriter::SetSymAttribute Method
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
See also
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.