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