Partner Attribute
-
25 februarie 2012 15:03
Good time of day!
Does anybody know what means "ServiceB" in code:
[Partner("ServiceB", Contract = serviceb.Contract.Identifier,CreationPolicy = PartnerCreationPolicy.CreateAlways, Optional = false)]
Where I can will use this name in future?
iagsav
Toate mesajele
-
6 martie 2012 07:21Moderator
http://msdn.microsoft.com/en-us/library/microsoft.dss.core.attributes.partnerattribute_properties.aspx The "ServiceB" is the Name property. It used for easy differentiation between services, eg, let's say you have 2 Generic Differential Drives for a 4x4 vehicle - you would call the front "FrontAxle" and the rear "RearAxle". Then, via xml, you can readily and easily identify the different services when inspecting the files by hand. There are additional ways for using the Name attribute, including identifying a node programmatically via code.- Marcat ca răspuns de Luke Thompson - MSFTMicrosoft Employee, Moderator 9 martie 2012 17:58