ErrorManager.UpdateErrorsDocumentName 方法

更改 Visual Studio 的**“错误列表”**窗口中所有属于指定类别的 DataSchemaError 对象的 Document 属性中文档的名称。

命名空间:  Microsoft.Data.Schema
程序集:  Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)

语法

声明
Public Sub UpdateErrorsDocumentName ( _
    oldFileName As String, _
    newFileName As String, _
    category As Object _
)
public void UpdateErrorsDocumentName(
    string oldFileName,
    string newFileName,
    Object category
)
public:
void UpdateErrorsDocumentName(
    String^ oldFileName, 
    String^ newFileName, 
    Object^ category
)
member UpdateErrorsDocumentName : 
        oldFileName:string * 
        newFileName:string * 
        category:Object -> unit 
public function UpdateErrorsDocumentName(
    oldFileName : String, 
    newFileName : String, 
    category : Object
)

参数

  • oldFileName
    类型:System.String
    一个 string,其中包含旧文档文件名。
  • newFileName
    类型:System.String
    一个 string,其中包含新文档文件名。
  • category
    类型:System.Object
    一个 Object,表示用于对错误进行分类的文档类型或对象类型。内部类别将表示为 Guid 字符串。

.NET Framework 安全性

请参见

参考

ErrorManager 类

Microsoft.Data.Schema 命名空间