Exemple #1
0
        public int GetAutomationObject(string pszPropName, out object ppDisp)
        {
            if (pszPropName == "Model")
            {
                ppDisp = new ActiveWriterExtensibleObject((Model)this.RootElement);
                return(VSConstants.S_OK);
            }

            ppDisp = null;
            return(VSConstants.E_INVALIDARG);
        }
 public int GetAutomationObject(string pszPropName, out object ppDisp)
 {
     if (pszPropName == "Model")
     {
         ppDisp = new ActiveWriterExtensibleObject((Model) this.RootElement);
         return VSConstants.S_OK;
     }
     
     ppDisp = null;
     return VSConstants.E_INVALIDARG;
 }