Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Value of type 'type1' cannot be converted to 'type2'. You can use the 'Value' property to get the string value of the first element of '<parentElement>'.
An attempt has been made to implicitly cast an XML literal to a specific type. The XML literal cannot be implicitly cast to the specified type.
Error ID: BC31194
To correct this error
- Use the
Valueproperty of the XML literal to reference its value as aString. Use theCTypefunction, another type conversion function, or the Convert class to cast the value as the specified type.
See also
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.