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

'宣言
Protected Property Comparer As IComparer(Of String)
'使用
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 a null reference (Nothing in Visual Basic).

Permissions

See Also

Reference

DataSourceVersionComparer Class

DataSourceVersionComparer Members

Microsoft.VisualStudio.Data.Framework Namespace

IComparer<T>