Method SetOption<T>
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.Native.dll
SetOption<T>(ResourceOption, T)
Sets value to an option.
public bool SetOption<T>(ResourceOption opt, T value)
Parameters
opt
ResourceOption-
The option.
value
T-
The value.
Returns
Type Parameters
T
-
The type specified by the
opt
(see remarks of enumerations).
Remarks
Wrapper of MaaFramework.Binding.Interop.Native.MaaResource.MaaResourceSetOption(System.IntPtr,System.Int32,System.Byte[],System.UInt64).
Exceptions
- ArgumentNullException
- NotSupportedException
-
The
opt
orvalue
is not supported.