TYMED 枚举
定义
提供 TYMED
结构的托管定义。Provides the managed definition of the TYMED
structure.
此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。
public enum class TYMED
[System.Flags]
public enum TYMED
type TYMED =
Public Enum TYMED
- 继承
- 属性
字段
TYMED_ENHMF | 64 | 该存储介质是增强型图元文件。The storage medium is an enhanced metafile. 如果 STGMEDIUMpUnkForRelease 成员为 |
TYMED_FILE | 2 | 该存储介质是由路径标识的磁盘文件。The storage medium is a disk file identified by a path. 如果 |
TYMED_GDI | 16 | 该存储介质是图形设备接口 (GDI) 组件 (HBITMAP)。The storage medium is a Graphics Device Interface (GDI) component (HBITMAP). 如果 STGMEDIUMpUnkForRelease 成员为 |
TYMED_HGLOBAL | 1 | 该存储介质是全局内存句柄 (HGLOBAL)。The storage medium is a global memory handle (HGLOBAL). 使用 GMEM_SHARE 标志分配全局句柄。Allocate the global handle with the GMEM_SHARE flag. 如果 STGMEDIUMpUnkForRelease 成员为 |
TYMED_ISTORAGE | 8 | 该存储介质是由 |
TYMED_ISTREAM | 4 | 该存储介质是由 |
TYMED_MFPICT | 32 | 该存储介质是图元文件 (HMETAFILE)。The storage medium is a metafile (HMETAFILE). 使用 Windows 或 WIN32 函数来访问该图元文件的数据。Use the Windows or WIN32 functions to access the metafile's data. 如果 STGMEDIUMpUnkForRelease 成员为 |
TYMED_NULL | 0 | 当前没有传递任何数据。No data is being passed. |
注解
有关TYMED
结构的详细信息, 请参阅 MSDN library。For more information about the TYMED
structure, see the MSDN Library.
当本机代码中的 COM 方法返回 HRESULT 时, 公共语言运行时将引发异常。The common language runtime throws an exception when a COM method in native code returns an HRESULT. 有关更多信息,请参见 How to: Map HRESULTs and Exceptions。For more information, see How to: Map HRESULTs and Exceptions.