If Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Models an If-Then-Else condition.

Namespace:  System.Activities.Core
Assembly:  System.Activities.Core (in System.Activities.Core.dll)

Syntax

'Declaration
<ContentPropertyAttribute("Then")> _
Public NotInheritable Class If _
    Inherits NativeActivity
'Usage
Dim instance As If
[ContentPropertyAttribute("Then")]
public sealed class If : NativeActivity
[ContentPropertyAttribute(L"Then")]
public ref class If sealed : public NativeActivity
public final class If extends NativeActivity
[<SealedAttribute>]
[<ContentPropertyAttribute("Then")>]
type If =  
    class
        inherit NativeActivity
    end

Inheritance Hierarchy

System.Object
  System.Activities.WorkflowElement
    System.Activities.NativeActivity
      System.Activities.Core.If

Thread Safety

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

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 4

See Also

Reference

If Members

System.Activities.Core Namespace