共用方式為


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 的來源項目。

適用於