Partner Attribute
-
25 กุมภาพันธ์ 2555 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
ตอบทั้งหมด
-
6 มีนาคม 2555 7:21ผู้ดูแล
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.- ทำเครื่องหมายเป็นคำตอบโดย Luke Thompson - MSFTMicrosoft, Moderator 9 มีนาคม 2555 17:58