Export (0) Print
Expand All

DiffOptions Class

The options that are available with performing diffs.

NOTE: This was copied almost verbatim from the old engine, because we already shipped this class.


Namespace:  Microsoft.TeamFoundation.VersionControl.Common
Assembly:  Microsoft.TeamFoundation.VersionControl.Common (in Microsoft.TeamFoundation.VersionControl.Common.dll)

public class DiffOptions

The DiffOptions type exposes the following members.

Public methodDiffOptionsConstructs a new DiffOptions instance

Public propertyCodePageOverrideCode page override from the command-line, non-zero means provide the override
Public propertyCommandLineOptionsCommand-line options to pass to a third-party tool
Public propertyContextLinesThe number of lines of context to provide for output formats that use them.
Public propertyCultureInfoReturns the CultureInfo that should be used if any DiffOption flags require it.
Public propertyFlagsThe various flags that can be set for a difference operation.
Public propertyOutputTypeOutput type to use
Public propertyRecursiveWhether this diff should be recursive
Public propertySourceEncodingThe encoding of the source files.
Public propertySourceLabelThe string that should be used to label the source diff stream.
Public propertyStreamWriterGets or sets the output stream writer.
Public propertyTargetEncodingThe encoding of the output stream.
Public propertyTargetLabelThe string that should be used to label the target diff stream.
Public propertyUseThirdPartyToolWhether this diff should attempt to start up a third-party tool
Public propertyVssFormatTypeReturns the VSS output subtype that will be used when formatting the output stream (if any at all). This property is strictly for backward compatibility purposes. This property defaults to VssOutputType.Vss as does the VSS command line.
Public propertyVssOutputWidthIf this property is set then the VSS output will be adjusted to fit inside this width. When set to -1 none of the output is trimmed at all.

Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetCodePageGets the code page override if available. Otherwise returns the provided fall-back code page.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetTargetEncodingToConsoleA helper method to set the target encoding to the encoding of the Console.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

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