ValidationContext 建構函式 (array<String , IEnumerable<ModelElement>)
Ctor
命名空間: Microsoft.VisualStudio.Modeling.Validation
組件: Microsoft.VisualStudio.Modeling.Sdk.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)
語法
'宣告
Public Sub New ( _
customCategories As String(), _
subjects As IEnumerable(Of ModelElement) _
)
public ValidationContext(
string[] customCategories,
IEnumerable<ModelElement> subjects
)
參數
- customCategories
型別:array<System.String[]
指定的自訂字串清單。這可以讓驗證方法,以驗證要求的字串。
- subjects
型別:System.Collections.Generic.IEnumerable<ModelElement>
若要驗證的物件
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。