ModelingTextTransformation.ValidateStore 方法

用给定的验证类别验证存储。 如果有错误,则返回 true。

命名空间:  Microsoft.VisualStudio.TextTemplating.VSHost
程序集:  Microsoft.VisualStudio.TextTemplating.Modeling.12.0(在 Microsoft.VisualStudio.TextTemplating.Modeling.12.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
    类型:String

    要应用的验证类别。 使用“open”、“load”、“save”和“menu”。 用“|”分隔多个类别。

  • errors
    类型:CompilerErrorCollection

    错误报告将放置到此集合中。

返回值

类型:Boolean

.NET Framework 安全性

请参阅

参考

ModelingTextTransformation 类

Microsoft.VisualStudio.TextTemplating.VSHost 命名空间