IService.VersionCopy(VersionCopyRequest) Method

Definition

Copies a model's version to a new version.

public:
 Microsoft::MasterDataServices::Services::MessageContracts::VersionCopyResponse ^ VersionCopy(Microsoft::MasterDataServices::Services::MessageContracts::VersionCopyRequest ^ request);
[System.ServiceModel.FaultContract(typeof(Microsoft.MasterDataServices.Services.DataContracts.SkuNotSupportedMessage))]
[System.ServiceModel.FaultContract(typeof(Microsoft.MasterDataServices.Services.DataContracts.EditionExpiredMessage))]
[System.ServiceModel.OperationContract]
public Microsoft.MasterDataServices.Services.MessageContracts.VersionCopyResponse VersionCopy (Microsoft.MasterDataServices.Services.MessageContracts.VersionCopyRequest request);
[<System.ServiceModel.FaultContract(typeof(Microsoft.MasterDataServices.Services.DataContracts.SkuNotSupportedMessage))>]
[<System.ServiceModel.FaultContract(typeof(Microsoft.MasterDataServices.Services.DataContracts.EditionExpiredMessage))>]
[<System.ServiceModel.OperationContract>]
abstract member VersionCopy : Microsoft.MasterDataServices.Services.MessageContracts.VersionCopyRequest -> Microsoft.MasterDataServices.Services.MessageContracts.VersionCopyResponse
Public Function VersionCopy (request As VersionCopyRequest) As VersionCopyResponse

Parameters

Returns

Attributes

Remarks

The VersionCopy(VersionCopyRequest) operation copies an existing version, including all data, to a new version.

The version to be copied MUST be specified by the version GUID, by using the FromVersionId parameter. The target version name MUST be specified by ToVersionName, and the target version description MUST be specified by ToVersionDescription.

The target name MUST not exist. A preexisting target name results in an error and no copy.

The operation checks the CopyOnlyCommittedVersion system setting and does not copy an uncommitted version if not allowed.

Applies to