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 的源元素。

适用于