adTempus API
PreviousUpNext
ISecurityDescriptor::TakeOwnership Method

Takes ownership of the object

C++
HRESULT TakeOwnership();
C#
TakeOwnership();
Visual Basic
Sub TakeOwnership()

TakeOwnership causes the calling user to be assigned as the owner of the object

The caller must have saChangeOwner permission or the method will fail with error ADT_E_NO_PERMISSION. 

All members of the server's Administrators group implicitly have saChangeOwner permission.

adTempus API Reference version 3.0.0.0, revised 10/30/2008