検証にコンテキスト クラスを提供します。
名前空間: 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), _
customCategories As String() _
) As ValidationContext
protected override ValidationContext CreateValidationContext(
IEnumerable<ModelElement> subjects,
string[] customCategories
)
パラメーター
- subjects
型 : System.Collections.Generic.IEnumerable<ModelElement>
- customCategories
型 : array<System.String[]
カスタム指定された文字列のリスト。これは、に指定された文字列の検証メソッドを検証します。
戻り値
型 : Microsoft.VisualStudio.Modeling.Validation.ValidationContext
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。