मैं कुछ CUSTOMMESSAGE एनकोडर बदलने के लिए कोशिश कर रहा हूँ की एक पहला तर्क को स्वीकार इस ब्लॉगSystem.Xml.Linq.XElement> 'के लिए एक परिभाषा शामिल नहीं है' प्रथम 'और कोई विस्तार विधि' प्रथम '
http://www.falconwebtech.com/post/2010/05/24/WCF-Interoperability-and-Extensibility-Part-Two.aspx
का उपयोग करना
यहाँ लेखक एक विस्तार विधि
xmlMessage.Descendants(sec + "Security").First().Add(samlXml);
क्या नाम स्थान मैं इस प्रथम के लिए प्रयोग करते हैं यह त्रुटि मैं हो रही है
'System.Collectio है का उपयोग करता है ns.Generic.IEnumerable 'में' फर्स्ट 'की परिभाषा नहीं है और के पहले तर्क को स्वीकार करने वाला कोई एक्सटेंशन विधि' सिस्टम 'नहीं है' System.Collections.Generic.IEnumerable ' पाया जा सकता है (क्या आप एक निर्देश का उपयोग कर रहे हैं या एक विधानसभा संदर्भ?)
मैं निम्नलिखित नामस्थान को शामिल किया है
using System;
using System.IO;
using System.Security.Cryptography;
using System.ServiceModel.Channels;
using System.Text;
using System.Xml;
using System.Xml.Linq;
using System.Reflection;
using System.Collections.Generic;
using System.Xml.XPath;
using System.Security.Cryptography.Xml;
using System.Security.Cryptography.X509Certificates;
using Microsoft.Web.Services3.Security;
using System.ServiceModel.Security;
using System.IdentityModel.Tokens;
मैं अपने शोध किया है हो सकता है, लेकिन मैं आसान तरीका
ले रहा हूँ धन्यवाद
"मैं अपने शोध किया है हो सकता है, लेकिन मैं आसान तरीका ले रहा हूँ" आपका समय हमारा से अधिक मूल्यवान, सही है? –
मुझे यकीन नहीं है कि यह आसान तरीका है ... जवाब खोजने के लिए लिया गया समय प्रश्न लिखने के लिए समय से कम होना चाहिए था। मैं आपको एक संकेत दूंगा। "Linq first" के लिए Google पर सबसे पहले हिट करें जिस विधि को आप चाहते हैं उसके लिए msdn पृष्ठ है। वह पृष्ठ आपको बताता है कि नामस्थान क्या है। – Chris