<System.ComponentModel.DataObjectField(True, True)> attribute not recognized

<System.ComponentModel.DataObjectField(True, True)> attribute not recognized

Old forum URL: forums.lhotka.net/forums/t/7103.aspx


GregDobbs posted on Sunday, June 14, 2009

I have the following property declaration as described in the VB 2008 Business objects book:

'ClientSubscriptionKey
Private Shared ClientSubscriptionKeyProperty As PropertyInfo(Of Integer) = RegisterProperty(New PropertyInfo(Of Integer)("ClientSubscriptionKey"))
_
Public ReadOnly Property ClientSubscriptionKey() As Integer
Get
Return GetProperty(ClientSubscriptionKeyProperty)
End Get
End Property

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? :-)

-- Greg

GregDobbs replied on Sunday, June 14, 2009

Also - 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, 2009

Found 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 ...

-- Greg

Copyright (c) Marimer LLC