Agile::operator= Operator

Assigns the specified object to the current Agile object.

   Agile<T> operator=(
   T^ object
) throw();

   Agile<T> operator=(
      const Agile<T>& object
) throw();

   Agile<T> operator=(
      Agile<T>&& object
) throw();

   T^ operator=(
      IUnknown* lp
) throw();

T

The type specified by the template typename.

object

The object or handle to an object that is copied or moved to the current Agile object.

lp

The IUnknown interface pointer of a object.

A handle to an object of type T

The first version of the assignment operator copies a handle to a reference type to the current Agile object. The second version copies a reference to an Agile type to the current Agile object. The third version moves an Agile type to the current Agile object. The fourth version moves a pointer to a COM object to the current Agile object.

The assignment operation automatically persists the context of the current Agile object.

Minimum supported client: Windows 8

Minimum supported server: Windows Server 2012

Namespace: Platform

Header: vccorlib.h

Show:
© 2014 Microsoft