JsonConfFlagConverterConvertFlagObjectTFlags Method (JObject, Int32) |
Converts a flag object to a corresponding numeric flags value.
Namespace:
MFiles.VAF.Configuration
Assembly:
MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 21.8.10524.1
Syntaxpublic TFlags ConvertFlagObject<TFlags>(
JObject flagObj,
int initialValue = 0
)
Public Function ConvertFlagObject(Of TFlags) (
flagObj As JObject,
Optional initialValue As Integer = 0
) As TFlags
public:
generic<typename TFlags>
TFlags ConvertFlagObject(
JObject^ flagObj,
int initialValue = 0
)
Parameters
- flagObj
- Type: JObject
The flag object to convert. - initialValue (Optional)
- Type: SystemInt32
The initial value of the flags.
Indicates default flag settings to use if no explicit
flag value is set in the object.
Type Parameters
- TFlags
- The flags (enum) type.
Return Value
Type:
TFlagsCorresponding flags value.
See Also