Share via


DataSourceVersionComparer.Comparer Property

Gets or sets the IComparer<T> object with which to perform a comparison.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Protected Property Comparer As IComparer(Of String)
'Usage
Dim value As IComparer(Of String)

value = Me.Comparer 

Me.Comparer = value
protected IComparer<string> Comparer { get; set; }
protected:
property IComparer<String^>^ Comparer {
    IComparer<String^>^ get ();
    void set (IComparer<String^>^ value);
}
protected function get Comparer () : IComparer<String>
protected function set Comparer (value : IComparer<String>)

Property Value

Type: System.Collections.Generic.IComparer<String>
An IComparer<T> object instance.

Exceptions

Exception Condition
ArgumentNullException

The value to be set is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

DataSourceVersionComparer Class

DataSourceVersionComparer Members

Microsoft.VisualStudio.Data.Framework Namespace

IComparer<T>