AddFile Method
Adds files to the assembly. Can also be used to create unbound modules.
Syntax
HRESULT AddFile(
mdAssembly AssemblyID,
LPCWSTR pszFilename,
DWORD dwFlags,
IMetaDataEmit* pEmitter,
mdFile* pFileToken
) PURE;
Parameters
AssemblyID
Unique ID of the assembly to be augmented.
pszFilename
Fully qualified name of file to be added.
dwFlags
COM+ FileDef flags such as ffContainsNoMetaData
and ffWriteable
. dwFlags
is passed to DefineFile Method.
pEmitter
IMetaDataEmit Interface interface to be used to emit metadata, if necessary.
pFileToken
Pointer to where the unique ID of the added file will be stored.
Return Value
Returns S_OK if the method succeeds.
Requirements
Requires alink.h.
See also
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.