語言

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

定義

可擴充點來撰寫自訂屬性。

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

類型參數

T

代表正在寫入屬性的元素的型別。 例如 ContactPerson 。

參數

writer
XmlWriter

XML 編寫者。

source
T

類型 的 T來源元素 。

適用於