Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Compare value and parameter (parameter[0]) for exact (StringComparison.Ordinal) string equality. If the strings are both null or are identical, Visibility.Visible is returned. Otherwise Visibility.Collapsed (or Visibility.Hidden if parameter[1] contains "Hidden") is returned.
If the parameter contains "Not", "!", or "Invert", the string comparison result is inverted before converting to Visibility.
Namespace: Microsoft.TeamFoundation.Controls.WPF.Converters
Assembly: Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)
Syntax
'Declaration
Public Overridable Function Convert ( _
value As Object, _
targetType As Type, _
parameter As Object, _
culture As CultureInfo _
) As Object
public virtual Object Convert(
Object value,
Type targetType,
Object parameter,
CultureInfo culture
)
public:
virtual Object^ Convert(
Object^ value,
Type^ targetType,
Object^ parameter,
CultureInfo^ culture
)
abstract Convert :
value:Object *
targetType:Type *
parameter:Object *
culture:CultureInfo -> Object
override Convert :
value:Object *
targetType:Type *
parameter:Object *
culture:CultureInfo -> Object
public function Convert(
value : Object,
targetType : Type,
parameter : Object,
culture : CultureInfo
) : Object
Parameters
value
Type: System.Objectfirst input string (can be null)
targetType
Type: System.Typeoutput type - Must be Visibility
parameter
Type: System.ObjectString or String[]: String or String[0] as the second string for comparison. Comma-separated options in Parameter[1]: "Not", "!", or "Invert" to invert the string comparison result before converting to Visibility.
culture
Type: System.Globalization.CultureInfocaller culture
Return Value
Type: System.Object
converted Visibility
Implements
IValueConverter.Convert(Object, Type, Object, CultureInfo)
.NET Framework Security
- 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.