ModelingTextTransformation.ValidateStore 方法

使用指定的驗證分類來驗證存放區。 如果有錯誤則會傳回 true。

命名空間:  Microsoft.VisualStudio.TextTemplating.VSHost
組件:  Microsoft.VisualStudio.TextTemplating.Modeling.10.0 (在 Microsoft.VisualStudio.TextTemplating.Modeling.10.0.dll 中)

語法

'宣告
Protected Function ValidateStore ( _
    categories As String, _
    errors As CompilerErrorCollection _
) As Boolean
protected bool ValidateStore(
    string categories,
    CompilerErrorCollection errors
)
protected:
bool ValidateStore(
    String^ categories, 
    CompilerErrorCollection^ errors
)
member ValidateStore : 
        categories:string * 
        errors:CompilerErrorCollection -> bool 
protected function ValidateStore(
    categories : String, 
    errors : CompilerErrorCollection
) : boolean

參數

  • categories
    型別:System.String
    要套用的驗證分類。使用 'open'、'load'、'save' 和 'menu'。請以 '|' 分隔多個分類。

傳回值

型別:System.Boolean

.NET Framework 安全性

請參閱

參考

ModelingTextTransformation 類別

Microsoft.VisualStudio.TextTemplating.VSHost 命名空間