ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data Namespace / Version Class / ChangeOwner Method
The name of the new owner of this version.

In This Topic
    ChangeOwner Method
    In This Topic
    Changes this version's owner. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void ChangeOwner( 
       string newOwnerName
    )
    Public Sub ChangeOwner( _
       ByVal newOwnerName As String _
    ) 

    Parameters

    newOwnerName
    The name of the new owner of this version.
    Exceptions
    ExceptionDescription
    The new owner name is null or an empty string.
    The version uses traditional versioning, which does not support changing ownership.
    A geodatabase-related exception has occurred.
    This method or property must be called within the lambda passed to QueuedTask.Run
    Remarks
    This method is only supported with branch versioning. Calling this routine on a traditional version will result in a System.InvalidOperationException.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also