共用方式為


MetadataSerializer.WriteCustomElements<T>(XmlWriter, T) 方法

定義

用來寫入自訂項目的擴充點。

protected:
generic <typename T>
 virtual void WriteCustomElements(System::Xml::XmlWriter ^ writer, T source);
protected virtual void WriteCustomElements<T> (System.Xml.XmlWriter writer, T source);
abstract member WriteCustomElements : System.Xml.XmlWriter * 'T -> unit
override this.WriteCustomElements : System.Xml.XmlWriter * 'T -> unit
Protected Overridable Sub WriteCustomElements(Of T) (writer As XmlWriter, source As T)

類型參數

T

表示正在寫入之項目的型別。

參數

writer
XmlWriter

XML 寫入器。

source
T

型別 T 的來源項目。

適用於