MetadataSerializer.WriteCustomAttributes<T>(XmlWriter, T) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
可擴充點來撰寫自訂屬性。
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來源元素 。