指定されたノード下に新しい AcStPluginInfo ノードを作成します。
サポートされているプラットフォーム: Windows のみ
名前空間: AcStMgr
アセンブリ: AcStMgr.tlb
VB.NET:
Public Sub WritePluginInfo(pPluginInfoSectionNode) _ Implements IAcStPlugin2.WritePluginInfo ... End Sub
C#:
public void WritePluginInfo(pPluginInfoSectionNode) { ...; }
タイプ: IAcStPlugin2 インタフェース
このメソッドが適用されるインタフェース。
アクセス: 入力のみ
タイプ: オブジェクト(MSXML2.IXMLDOMNode)オブジェクト
新しい AcStPluginInfo ノードを追加する AcStPluginInfoSection ノード。
戻り値はありません。
追加の注意はありません。
バージョン: AutoCAD 2004 以降
VB.NET:
Public Sub WritePluginInfo(ByVal pPluginInfoSectionNode As Object) _ Implements IAcStPlugin2.WritePluginInfo ' Sets the Section node for the XML file output Dim pSectionNode As IXMLDOMNode = pPluginInfoSectionNode ' Creates a new element Dim xmlElem As IXMLDOMElement = _ pSectionNode.ownerDocument.createElement("AcStPluginInfo") ' Appends the new element to the XMl file Dim pPluginInfoElement As IXMLDOMElement = _ pSectionNode.appendChild(xmlElem) ' Writes the plug-in information to the XML file pPluginInfoElement.setAttribute("PluginName", Name()) pPluginInfoElement.setAttribute("Version", Version()) pPluginInfoElement.setAttribute("Description", Description()) pPluginInfoElement.setAttribute("Author", Author()) pPluginInfoElement.setAttribute("HRef", HRef()) pPluginInfoElement.setAttribute("DWSName", "") pPluginInfoElement.setAttribute("Status", "1") ' Save a reference to the XML document in a global variable to allow additional information ' to be added to the XML file m_xmlDoc = pSectionNode.ownerDocument End Sub
C#:
public void WritePluginInfo(object pPluginInfoSectionNode) { // Sets the Section node for the XML file output IXMLDOMNode pSectionNode = (IXMLDOMNode)pPluginInfoSectionNode; // Creates a new element IXMLDOMElement xmlElem = pSectionNode.ownerDocument.createElement("AcStPluginInfo"); // Appends the new element to the XMl file IXMLDOMElement pPluginInfoElement = (IXMLDOMElement)pSectionNode.appendChild(xmlElem); // Writes the plug-in information to the XML file pPluginInfoElement.setAttribute("PluginName", Name); pPluginInfoElement.setAttribute("Version", Version); pPluginInfoElement.setAttribute("Description", Description); pPluginInfoElement.setAttribute("Author", Author); pPluginInfoElement.setAttribute("HRef", HRef); pPluginInfoElement.setAttribute("DWSName", ""); pPluginInfoElement.setAttribute("Status", "1"); // Save a reference to the XML document in a global variable to allow additional information // to be added to the XML file m_xmlDoc = pSectionNode.ownerDocument; }