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]. |
Validation |
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. |
Validation |
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
Returns
Type | Description |
---|---|
bool |
ValidatePackage(VettingContext, out ValidationSuiteReport)
Declaration
public static bool ValidatePackage(VettingContext context, out ValidationSuiteReport report)
Parameters
Type | Name | Description |
---|---|---|
Vetting |
context | |
Validation |
report |
Returns
Type | Description |
---|---|
bool |
ValidatePackage(VettingContext, ValidationType, out ValidationSuiteReport)
Declaration
public static bool ValidatePackage(VettingContext context, ValidationType validationType, out ValidationSuiteReport report)
Parameters
Type | Name | Description |
---|---|---|
Vetting |
context | |
Validation |
validationType | |
Validation |
report |
Returns
Type | Description |
---|---|
bool |