VsValidationController.CreateValidationContext 方法 (IEnumerable<ModelElement>, ValidationCategories)
提供用於驗證的內容類別
命名空間: Microsoft.VisualStudio.Modeling.Shell
組件: Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll 中)
語法
'宣告
Protected Overrides Function CreateValidationContext ( _
subjects As IEnumerable(Of ModelElement), _
categories As ValidationCategories _
) As ValidationContext
protected override ValidationContext CreateValidationContext(
IEnumerable<ModelElement> subjects,
ValidationCategories categories
)
參數
- subjects
型別:System.Collections.Generic.IEnumerable<ModelElement>
傳回值
型別:Microsoft.VisualStudio.Modeling.Validation.ValidationContext
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。