Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.54 KB

File metadata and controls

44 lines (32 loc) · 1.54 KB
description title dev_langs ms.date ms.topic keywords ms.workload
A helper function that returns an [agile_ref](agile-ref.md) object, representing an agile reference to a C++/WinRT object or interface.
winrt::make_agile function template (C++/WinRT)
C++
04/19/2018
reference
windows 10, uwp, standard, c++, cpp, winrt, projection, api, reference, agile
cplusplus

winrt::make_agile function template (C++/WinRT)

A helper function that returns an agile_ref object, representing an agile reference to a C++/WinRT object or interface. For more info, and code examples, see Agile objects in C++/WinRT.

Syntax

template <typename T>
agile_ref<T> make_agile(T const& object);

Template parameters

typename T The type of C++/WinRT object or interface to make an agile reference to.

Parameters

object The C++/WinRT object or interface to make an agile reference to.

Return value

A agile_ref representing an agile reference to the C++/WinRT object or interface.

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