Enum.IConvertible.ToBoolean(IFormatProvider) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts the current value to a Boolean value based on the underlying type.
virtual bool System.IConvertible.ToBoolean(IFormatProvider ^ provider) = IConvertible::ToBoolean;
bool IConvertible.ToBoolean (IFormatProvider provider);
abstract member System.IConvertible.ToBoolean : IFormatProvider -> bool
override this.System.IConvertible.ToBoolean : IFormatProvider -> bool
Function ToBoolean (provider As IFormatProvider) As Boolean Implements IConvertible.ToBoolean
Parameters
- provider
- IFormatProvider
An object that supplies culture-specific formatting information.
Returns
This member always throws an exception.
Implements
Exceptions
In all cases.
Remarks
Currently not implemented. Always throws an exception.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.