IPackageValidationProvider.ValidatePackageForFeature 方法
This API supports the Visual Studio infrastructure and is not intended to be used directly from your code.
判斷功能是否可以加入至封裝。
命名空間: Microsoft.VisualStudio.SharePoint.Validation
組件: Microsoft.VisualStudio.SharePoint (在 Microsoft.VisualStudio.SharePoint.dll 中)
語法
'宣告
Function ValidatePackageForFeature ( _
projectPackage As ISharePointProjectPackage, _
projectFeature As ISharePointProjectFeature _
) As IValidationResult
IValidationResult ValidatePackageForFeature(
ISharePointProjectPackage projectPackage,
ISharePointProjectFeature projectFeature
)
參數
- projectPackage
型別:Microsoft.VisualStudio.SharePoint.ISharePointProjectPackage
要驗證的封裝。
- projectFeature
型別:Microsoft.VisualStudio.SharePoint.ISharePointProjectFeature
用於驗證封裝的功能。
傳回值
型別:Microsoft.VisualStudio.SharePoint.Validation.IValidationResult
表示驗證結果的物件。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。