Package.Validate 方法

Checks the package for various expected conditions.

命名空间:  Microsoft.MasterDataServices.Deployment
程序集:  Microsoft.MasterDataServices.Deployment(在 Microsoft.MasterDataServices.Deployment.dll 中)

语法

声明
Public Sub Validate
用法
Dim instance As Package

instance.Validate()
public void Validate()
public:
void Validate()
member Validate : unit -> unit
public function Validate()

注释

Validate throws DeploymentException under the following conditions:

  • The Metadata property is nullnull 引用(在 Visual Basic 中为 Nothing).

  • The Metadata in the package does not contain exactly one model.

  • The package contains master data, but the version of the data does not match the version of the Metadata.

  • The business rule set in the package explicitly contains BRActions, BRConditions, or BRConditionTreeNodes.

请参阅

参考

Package 类

Microsoft.MasterDataServices.Deployment 命名空间