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.
A helper function that retrieves a string view containing the fully-qualified type name of a particular Windows Runtime class.
name_of works best with a projected type. If you specify an implementation type, then name_of returns the stringified GUID of the default interface.
Syntax
template <typename T>
constexpr auto name_of() noexcept;
Template parameters
typename T
A projected interface or runtime class type.
Return value
A string view with a null-terminator beyond the end.
Example
if (ApiInformation.IsMethodPresent(
winrt::name_of<Windows::Devices::PointOfService::ReceiptPrintJob>(),
L"FeedPaperByLine")) {
...
}
Requirements
Minimum supported SDK: Windows SDK version 10.0.17134.0 (Windows 10, version 1803)
Namespace: winrt
Header: %WindowsSdkDir%Include<WindowsTargetPlatformVersion>\cppwinrt\winrt\base.h (included by default)