/// <include file='doc\ExpansionProvider.uex' path='docs/doc[@for="ExpansionProvider.GetExpansionFunction"]/*' /> public virtual int GetExpansionFunction(MSXML.IXMLDOMNode xmlFunctionNode, string fieldName, out IVsExpansionFunction func) { XmlDocument doc = new XmlDocument(); doc.LoadXml(xmlFunctionNode.xml); func = GetExpansionFunction(doc.DocumentElement, fieldName); return(NativeMethods.S_OK); }
public virtual int GetExpansionFunction(MSXML.IXMLDOMNode xmlFunctionNode, string fieldName, out IVsExpansionFunction func) { XmlDocument doc = new XmlDocument(); doc.XmlResolver = null; using (StringReader stream = new StringReader(xmlFunctionNode.xml)) using (XmlReader reader = XmlReader.Create(stream, new XmlReaderSettings() { DtdProcessing = DtdProcessing.Prohibit, XmlResolver = null })) { doc.Load(reader); func = GetExpansionFunction(doc.DocumentElement, fieldName); } return(NativeMethods.S_OK); }
public int InsertSpecificExpansion(MSXML.IXMLDOMNode pSnippet, TextSpan tsInsertPos, IVsExpansionClient pExpansionClient, Guid guidLang, string pszRelativePath, out IVsExpansionSession pSession) { throw new NotImplementedException(); }
public int GetExpansionFunction(MSXML.IXMLDOMNode xmlFunctionNode, string bstrFieldName, out IVsExpansionFunction pFunc) { pFunc = null; return(VSConstants.S_OK); }