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.
Creates a File metadata structure containing metadata for assembly referenced by this assembly, and returns the associated metadata token.
Syntax
HRESULT DefineFile (
[in] LPCWSTR szName,
[in] const void *pbHashValue,
[in] ULONG cbHashValue,
[in] DWORD dwFileFlags,
[out] mdFile *pmdf
);
Parameters
szName
[in] The name of the file to be consumed.
pbHashValue
[in] A pointer to the hash data associated with the assembly.
cbHashValue
[in] The size in bytes of pbHashValue.
dwFileFlags
[in] A bitwise combination of FileFlags values that specify property settings.
pmdf
[out] A pointer to the returned File token.
Remarks
One File metadata structure must be defined for each file that was part of this assembly at the time that this assembly was built, excluding the file that contains the metadata.
Requirements
Platform: See .NET supported operating systems.
Header: Cor.h
Library: CorGuids.lib