.NET Framework Class Library
RemoteAccess.TransferOwnership Method

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > .NET API > MwPDMApi Namespace > RemoteAccess Class > RemoteAccess Methods >

.NET Framework Class Library
RemoteAccess.TransferOwnership Method

With the Remote Access Mode enabled, transfers the ownership of a record from a company to another one.

Namespace: MwPDMApi
Assembly:  MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

Visual Basic

Public Sub TransferOwnership ( _

docUid As String, _
newCompanyID As String, _
Optional processRelatedDocuments As Boolean = False _
)

C#

public void TransferOwnership(

string docUid,
string newCompanyID,
bool processRelatedDocuments = false
)

Visual C++

public:

void TransferOwnership(
String^ docUid,
String^ newCompanyID,
bool processRelatedDocuments = false
)

JavaScript

function transferOwnership(docUid, newCompanyID, processRelatedDocuments);

Parameters

docUid

Type: System.String
unique id of the document to change the ownership of

newCompanyID

Type: System.String
new COMPANY_ID to be set for the selected record

processRelatedDocuments (Optional)

Type: System.Boolean
Optional. TRUE transfer ownership of related documents too, FALSE do not process any related document.

Remarks

See Also

RemoteAccess Class

RemoteAccess Members

MwPDMApi Namespace