<System.ComponentModel.DataObjectField(True, True)> attribute not recognized
<System.ComponentModel.DataObjectField(True, True)> attribute not recognizedOld forum URL: forums.lhotka.net/forums/t/7103.aspx
GregDobbs posted on Sunday, June 14, 2009I have the following property declaration as described in the VB 2008 Business objects book:
Private Shared ClientSubscriptionKeyProperty As PropertyInfo(Of Integer) = RegisterProperty(New PropertyInfo(Of Integer)("ClientSubscriptionKey"))
Public ReadOnly Property ClientSubscriptionKey() As Integer
The compiler and intellisense are giving me the error on the attribute
that the type is not defined. Exploring the System.ComponentModel namespace also does not show this type anywhere.
Am I missing something obvious here? :-)
GregDobbs replied on Sunday, June 14, 2009Also - please note that the forum text editor removed the attribute declaration from my post and replaced it with an underscore - but you can see the attribute properly in the post title.
GregDobbs replied on Sunday, June 14, 2009Found the issue - the class library I created was for a Silverlight project, hence no support for this attribute.
Guess I'm going to have to buy some popcorn and sit down for a night at the movies with Rocky's Silverlight video series ...
Copyright (c) Marimer LLC