Method ValidatePackage
ValidatePackage(string, ValidationType)
Validate a package for the given validation context.
Declaration
public static bool ValidatePackage(string packageId, ValidationType validationType)
Parameters
Type |
Name |
Description |
string |
packageId |
Package Id in the format of [package name]@[package version].
|
ValidationType |
validationType |
The type of validation to assess.
|
Returns
Type |
Description |
bool |
True if the validation successfully completed.
|
ValidatePackage(string, string, ValidationType)
Validate a package for the given validation context.
Declaration
public static bool ValidatePackage(string packageName, string packageVersion, ValidationType validationType)
Parameters
Type |
Name |
Description |
string |
packageName |
The name of the package to validate.
|
string |
packageVersion |
The version of the package to validate.
|
ValidationType |
validationType |
The type of validation to assess.
|
Returns
Type |
Description |
bool |
True if the validation successfully completed.
|
ValidatePackage(string, string, string[])
Declaration
public static bool ValidatePackage(string packageName, string packageVersion, string[] packageIdsForPromotion)
Parameters
Type |
Name |
Description |
string |
packageName |
|
string |
packageVersion |
|
string[] |
packageIdsForPromotion |
|
Returns
ValidatePackage(VettingContext, out ValidationSuiteReport)
Declaration
public static bool ValidatePackage(VettingContext context, out ValidationSuiteReport report)
Parameters
Returns
ValidatePackage(VettingContext, ValidationType, out ValidationSuiteReport)
Declaration
public static bool ValidatePackage(VettingContext context, ValidationType validationType, out ValidationSuiteReport report)
Parameters
Returns