Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Microsoft Dynamics AX 2012 Services

You're reading from  Microsoft Dynamics AX 2012 Services

Product type Book
Published in Dec 2012
Publisher Packt
ISBN-13 9781849687546
Pages 196 pages
Edition 1st Edition
Languages

Key components


In the previous chapter, we discussed the key components of document services. When developing custom services, there are also a few concepts you should be familiar with, starting with attributes.

Attributes

Attributes are classes that contain data just like normal classes, but the purpose of this data is different. Attributes contain metadata that describes targets. Targets can be of different types such as classes, interfaces, method, events, and so on.

Attributes can either be intrinsic or custom . Intrinsic attributes are part of the CLR (Common Language Runtime) and are contained in the .NET framework. Custom attributes are attributes that you can create yourself.

Because attributes contains metadata, they are only useful when reflection is used. An example of this is a DataContract attribute. The service generation process uses reflection on the classes that the service class uses to determine which of these classes are data contracts.

The following code shows the usage...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}