Saturday, February 25, 2012 3:03 PM
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?
Tuesday, March 06, 2012 7:21 AMModeratorhttp://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.
- Marked As Answer by Luke Thompson - MSFTMicrosoft Employee, Moderator Friday, March 09, 2012 5:58 PM