Creates a new model from the supplied deployment package, with new identifiers and a new name.
命名空間: Microsoft.MasterDataServices.Deployment
組件: Microsoft.MasterDataServices.Deployment (在 Microsoft.MasterDataServices.Deployment.dll 中)
語法
'宣告
Public Function DeployNew ( _
package As Package, _
modelName As String, _
<OutAttribute> ByRef newModelId As Identifier _
) As Warnings
'用途
Dim instance As ModelDeployer
Dim package As Package
Dim modelName As String
Dim newModelId As Identifier
Dim returnValue As Warnings
returnValue = instance.DeployNew(package, _
modelName, newModelId)
public Warnings DeployNew(
Package package,
string modelName,
out Identifier newModelId
)
public:
Warnings^ DeployNew(
Package^ package,
String^ modelName,
[OutAttribute] Identifier^% newModelId
)
member DeployNew :
package:Package *
modelName:string *
newModelId:Identifier byref -> Warnings
public function DeployNew(
package : Package,
modelName : String,
newModelId : Identifier
) : Warnings
參數
- package
型別:Microsoft.MasterDataServices.Deployment.Package
The Package object to deploy.
- modelName
型別:System.String
The name of the new model.
- newModelId
型別:Microsoft.MasterDataServices.Services.DataContracts.Identifier%
The identifier of the newly created model.
傳回值
型別:Microsoft.MasterDataServices.Deployment.Warnings
An instance of Warnings that contains the collections of objects to be treated as warnings.
備註
DeployNew throws ArgumentNullException if the package or modelName parameter is nullnull 參考 (在 Visual Basic 中為 Nothing).
DeployNew throws DeploymentException if an error occurred that was not service-related.
DeployNew throws DeploymentOperationException if errors were returned from a service call while rolling back after a failure.
DeployNew throws ServiceAdapterException if errors were returned from a service call.