IService.MetadataClone(MetadataCloneRequest) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates exact copies of metadata components from another source, while retaining the GUIDs of the original objects.
public:
Microsoft::MasterDataServices::Services::MessageContracts::MetadataCloneResponse ^ MetadataClone(Microsoft::MasterDataServices::Services::MessageContracts::MetadataCloneRequest ^ 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.MetadataCloneResponse MetadataClone (Microsoft.MasterDataServices.Services.MessageContracts.MetadataCloneRequest request);
[<System.ServiceModel.FaultContract(typeof(Microsoft.MasterDataServices.Services.DataContracts.SkuNotSupportedMessage))>]
[<System.ServiceModel.FaultContract(typeof(Microsoft.MasterDataServices.Services.DataContracts.EditionExpiredMessage))>]
[<System.ServiceModel.OperationContract>]
abstract member MetadataClone : Microsoft.MasterDataServices.Services.MessageContracts.MetadataCloneRequest -> Microsoft.MasterDataServices.Services.MessageContracts.MetadataCloneResponse
Public Function MetadataClone (request As MetadataCloneRequest) As MetadataCloneResponse
Parameters
- request
- MetadataCloneRequest
Returns
- Attributes
Remarks
The MetadataClone(MetadataCloneRequest) operation creates a copy of a metadata item that is linked to the original via the shared GUID. This operation is similar to MetadataCreate(MetadataCreateRequest) except as specified here.
The MetadataClone(MetadataCloneRequest) operation requires both the GUID and the name of new items in the request. The GUID is inserted rather than generated. If the request contains a GUID that matches an existing object in the hub of the same type, that object is updated.
The identifiers of each new item MUST include the GUID and the name. The name MUST NOT exist within the specified context for an item with another GUID.