Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
public class PropertyInfo
    {
        public int propertyID { get; set; }
        public string propValue { get; set; }
    }

    [WebMethod]
    public string UpdatePropertyLMS(int interactionId, string Lead_Status, string Interaction_state)
    {
        //int interactionId = 0;
        string errorMsg = "";
  LMSWebRef.InteractionWebService obj = LMSWebRef.InteractionWebService();

        List<propertyinfo> propData = new List<propertyinfo>();
        
	 PropertyInfo prop1 = new PropertyInfo();
        prop1.propertyID = 23329;
        prop1.propValue = Lead_Status.ToString();
        propData.Add(prop1);

        PropertyInfo prop2 = new PropertyInfo();
        prop2.propertyID = 5;
        prop2.propValue = Interaction_state.ToString();
        propData.Add(prop2);

        obj.UpdatePropertyTab(interactionId, propData.ToArray(), true, true, errorMsg);
        
        return errorMsg;
  
    }


bold line getting error for propData.ToArray();
Posted
Updated 23-Mar-15 18:25pm
v2
Comments
Rajnish D mishra 24-Mar-15 0:31am    
any help please
Sergey Alexandrovich Kryukov 24-Mar-15 1:00am    
And where is the definition of InteractionWebService? And what's is unclear in the error message you got?
—SA
Sinisa Hajnal 24-Mar-15 3:31am    
It seems very clear, you got one of the arguments wrong. Without UpdatePropertyTab definition that is all we can say.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900