VisualStyleRenderer.LastHResult 属性

定义

获取本机视觉样式 (UxTheme) API 方法所返回的上一个错误代码,这些方法由 VisualStyleRenderer 类封装。Gets the last error code returned by the native visual styles (UxTheme) API methods encapsulated by the VisualStyleRenderer class.

public:
 property int LastHResult { int get(); };
public int LastHResult { get; }
member this.LastHResult : int
Public ReadOnly Property LastHResult As Integer

属性值

一个指定上一个错误代码的值,该错误代码由此类封装的本机视觉样式 API 方法返回。A value specifying the last error code returned by the native visual styles API methods that this class encapsulates.

注解

此属性获取由 VisualStyleRenderer 类的成员调用的上一个本机视觉样式 API 方法返回的 HRESULT 值。This property gets the HRESULT value that was returned by the last native visual styles API method called by a member of the VisualStyleRenderer class. 有关本机视觉样式 API 的详细信息,请参阅 MSDN Library 的平台 SDK 部分中的 "使用 Windows XP 视觉样式" https://msdn.microsoft.com/libraryFor more information about the native visual styles API, see "Using Windows XP Visual Styles" in the Platform SDK portion of the MSDN Library at https://msdn.microsoft.com/library.

适用于