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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DataSourceVersionComparer Class
DataSourceVersionComparer Members