EnumerationExtensionsAddFlagT Method |
Namespace: OIV.InventorAssembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 9.9.13.0 (9.9.13.0)
Syntaxpublic static T AddFlag<T>(
this Enum type,
T value
)
<ExtensionAttribute>
Public Shared Function AddFlag(Of T) (
type As Enum,
value As T
) As T
public:
[ExtensionAttribute]
generic<typename T>
static T AddFlag(
Enum^ type,
T value
)
[<ExtensionAttribute>]
static member AddFlag :
type : Enum *
value : 'T -> 'T
Parameters
- type
- Type: SystemEnum
- value
- Type: T
Type Parameters
- T
Return Value
Type:
TUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Enum. 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).
See Also