ArcGIS Pro 2.6 API Reference Guide
ChangeOwner Method

ArcGIS.Core.Data Namespace > Version Class : ChangeOwner Method
The name of the new owner of this version.
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.
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 10, Windows 8.1, Windows 7

See Also

Reference

Version Class
Version Members