DocumentClass.Compare Method 

This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Dim Name As String
Dim AuthorName As Object
Dim CompareTarget As Object
Dim DetectFormatChanges As Object
Dim IgnoreAllComparisonWarnings As Object
Dim AddToRecentFiles As Object
Dim RemovePersonalInformation As Object
Dim RemoveDateAndTime As Object
Dim documentClass1 As DocumentClass
documentClass1.Compare(Name, AuthorName, CompareTarget, DetectFormatChanges, IgnoreAllComparisonWarnings, AddToRecentFiles, RemovePersonalInformation, RemoveDateAndTime)

Syntax

Public Overridable Sub Compare( _
    <InAttribute()> ByVal Name As String, _
    <InAttribute()> Optional ByRef AuthorName As Object, _
    <InAttribute()> Optional ByRef CompareTarget As Object, _
    <InAttribute()> Optional ByRef DetectFormatChanges As Object, _
    <InAttribute()> Optional ByRef IgnoreAllComparisonWarnings As Object, _
    <InAttribute()> Optional ByRef AddToRecentFiles As Object, _
    <InAttribute()> Optional ByRef RemovePersonalInformation As Object, _
    <InAttribute()> Optional ByRef RemoveDateAndTime As Object _
)
public virtual void Compare(
    [In] string Name, 
    [In, Optional] ref object AuthorName, 
    [In, Optional] ref object CompareTarget, 
    [In, Optional] ref object DetectFormatChanges, 
    [In, Optional] ref object IgnoreAllComparisonWarnings, 
    [In, Optional] ref object AddToRecentFiles, 
    [In, Optional] ref object RemovePersonalInformation, 
    [In, Optional] ref object RemoveDateAndTime
);
public: Void Compare(
    String^ Name, 
    &Object^ AuthorName, 
    &Object^ CompareTarget, 
    &Object^ DetectFormatChanges, 
    &Object^ IgnoreAllComparisonWarnings, 
    &Object^ AddToRecentFiles, 
    &Object^ RemovePersonalInformation, 
    &Object^ RemoveDateAndTime
);
public void Compare(
    /*in*/System.String Name, 
    /*in*/System.Object AuthorName, 
    /*in*/System.Object CompareTarget, 
    /*in*/System.Object DetectFormatChanges, 
    /*in*/System.Object IgnoreAllComparisonWarnings, 
    /*in*/System.Object AddToRecentFiles, 
    /*in*/System.Object RemovePersonalInformation, 
    /*in*/System.Object RemoveDateAndTime
);
public function Compare(
     Name : String, 
     AuthorName : Object, 
     CompareTarget : Object, 
     DetectFormatChanges : Object, 
     IgnoreAllComparisonWarnings : Object, 
     AddToRecentFiles : Object, 
     RemovePersonalInformation : Object, 
     RemoveDateAndTime : Object
);

Parameters

  • Name
    This parameter is intended for internal use only.
  • AuthorName
    This parameter is intended for internal use only.
  • CompareTarget
    This parameter is intended for internal use only.
  • DetectFormatChanges
    This parameter is intended for internal use only.
  • IgnoreAllComparisonWarnings
    This parameter is intended for internal use only.
  • AddToRecentFiles
    This parameter is intended for internal use only.
  • RemovePersonalInformation
    This parameter is intended for internal use only.
  • RemoveDateAndTime
    This parameter is intended for internal use only.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

DocumentClass Class
Microsoft.Office.Interop.Word Namespace

Other Resources

DocumentClass Members