EmitAssemblyCustomAttribute 方法
更新:2007 年 11 月
呼叫此方法以設定組件 (Assembly) 層級的自訂屬性 (Attribute)。
HRESULT EmitAssemblyCustomAttribute(
mdAssembly AssemblyID,
mdToken FileToken,
mdToken tkType,
void const* pCustomValue,
DWORD cbCustomValue,
BOOL bSecurity,
BOOL bAllowMulti
) PURE;
參數
AssemblyID
組件的 ID。FileToken
定義屬性的檔案。如果 AssemblyID 不表示未繫結的 netmodule,則可為 NULL。tkType
自訂屬性的型別。pCustomValue
自訂值資料。cbCustomValue
自訂值資料的長度。bSecurity
如果自訂屬性與組件的簽署有關則為 TRUE。bAllowMulti
如果要發出多個屬性則為 TRUE。
傳回值
如果此方法成功則傳回 S_OK。
需求
需要 alink.h。