Share via


INuiAudioBeam::AddRef Method

Kinect for Windows 1.5, 1.6, 1.7, 1.8

Increments the reference count for an interface on an object. This method should be called for every new copy of a pointer to an interface on an object.

Syntax

public:
ULONG AddRef()

Return Value

Type: ULONG
Returns the new reference count. This value is intended to be used only for test purposes.

Remarks

Call this method for every new copy of an interface pointer that you make. For example, if you are passing a copy of a pointer back from a method, you must call AddRef on that pointer. You must also call AddRef on a pointer before passing it as an in-out parameter to a method; the method will call INuiAudioBeam::Release before copying the out-value on top of it.

Requirements

Header: Declared in Unknwn.h.