BuildServerExtensions.HasFlag Method (BuildReason, BuildReason)
Namespace: Microsoft.TeamFoundation.Build.Client
Assembly: Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function HasFlag ( _
reason As BuildReason, _
reason2 As BuildReason _
) As Boolean
public static bool HasFlag(
this BuildReason reason,
BuildReason reason2
)
[ExtensionAttribute]
public:
static bool HasFlag(
BuildReason reason,
BuildReason reason2
)
static member HasFlag :
reason:BuildReason *
reason2:BuildReason -> bool
public static function HasFlag(
reason : BuildReason,
reason2 : BuildReason
) : boolean
Parameters
- reason
Type: Microsoft.TeamFoundation.Build.Client.BuildReason
- reason2
Type: Microsoft.TeamFoundation.Build.Client.BuildReason
Return Value
Type: System.Boolean
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type BuildReason. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
.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.