Click or drag to resize

JsonConfFlagConverterConvertFlagObject Method (Type, 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: 2.1.0.1 (2.1.0.1)
Syntax
C#
public int ConvertFlagObject(
	Type flagType,
	JObject flagObj,
	int initialValue = 0
)

Parameters

flagType
Type: SystemType
The flags (enum) type.
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.

Return Value

Type: Int32
Corresponding flags value.
See Also