BC30941: Structure '<structurename>' must contain at least one instance member variable or at least one instance event declaration not marked 'Custom'
A structure definition does not include any nonshared variables or nonshared noncustom events.
Every structure must have either a variable or an event that applies to each specific instance (nonshared) instead of to all instances collectively (Shared). Nonshared constants, properties, and procedures do not satisfy this requirement. In addition, if there are no nonshared variables and only one nonshared event, that event cannot be a Custom
event.
Error ID: BC30941
To correct this error
- Define at least one variable or event that is not
Shared
. If you define only one event, it must be noncustom as well as nonshared.
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for