用给定的验证类别验证存储。 如果有错误,则返回 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”。用“|”分隔多个类别。
- errors
 类型:System.CodeDom.Compiler.CompilerErrorCollection
 错误报告将放置到此集合中。
返回值
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。