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.
To establish the initial value for a field or property in an object initializer declaration, you must use an equal sign. For example, the following declaration assigns "Microsoft" as the initial value for the Name
property of client
.
Dim client As New Customer { .Name = "Microsoft" }
Error ID: BC30984
To correct this error
- Add an equal sign in the position shown in the previous example.
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.