Bonjour
J'essaye de comprendre pourquoi mon interface ne connait pas une classe utilisé en type de retour
Mon interface ci apres ne connais pas le type C_DeviceInfo
C'est sans doute idiotmais je suis dérouté
Merci de votre aide
Code voici l'interface : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 using System.Text; using System.ServiceModel; using System.Data; using System.Runtime.Serialization; // File transfer // http://weblogs.asp.net/cibrax/archive/2007/08/29/sending-attachments-with-wcf.aspx namespace NS_YRServices { [ServiceContract] public interface IYRServices { [OperationContract] DataTable YRGetDeviceList(out int TotCount, int First, int AskedCount, string _filter); [OperationContract] C_DeviceInfo YRGetDeviceInfo(string GUID); } }
Code voici la declaration de la classe : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 using System; using System.Data; using System.Runtime.Serialization; using BCSqlServer; namespace NS_YRServices { [DataContract] public class C_DeviceInfo { [DataMember] public string Marque { get; set; } [DataMember] public string Modele { get; set; } [DataMember] public string urlImage { get; set; } [DataMember] public bool hasValue { get; set; } } public class YRServicesMethods : IYRServices { #region IService Members public QuerySqlS QR = new QuerySqlS(); public int YRGetDeviceInfo(string GUID) { // to complete C_DeviceInfo c = new C_DeviceInfo(); return c; }
Partager