XmlHelper.EnumerableOfObjectToXml<T> 方法
命名空間: Microsoft.TeamFoundation.Common
組件: Microsoft.TeamFoundation.Common (在 Microsoft.TeamFoundation.Common.dll 中)
語法
'宣告
Public Shared Sub EnumerableOfObjectToXml(Of T) ( _
writer As XmlWriter, _
enumerable As IEnumerable(Of T), _
arrayName As String, _
arrayElementName As String, _
inline As Boolean, _
allowEmptyArrays As Boolean, _
objectToXmlElement As Action(Of XmlWriter, String, T) _
)
public static void EnumerableOfObjectToXml<T>(
XmlWriter writer,
IEnumerable<T> enumerable,
string arrayName,
string arrayElementName,
bool inline,
bool allowEmptyArrays,
Action<XmlWriter, string, T> objectToXmlElement
)
型別參數
- T
參數
- writer
型別:System.Xml.XmlWriter
- enumerable
型別:System.Collections.Generic.IEnumerable<T>
- arrayName
型別:System.String
- arrayElementName
型別:System.String
- inline
型別:System.Boolean
- allowEmptyArrays
型別:System.Boolean
- objectToXmlElement
型別:System.Action<XmlWriter, String, T>
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。