A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/uwp/cpp-ref-for-winrt/name-of below:

winrt::name_of function template (C++/WinRT) - Windows UWP applications

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)

See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4