Share via


OpenXmlPartContainer.GetPartsCountOfType<T> 方法

定义

注意

Use GetPartsOfType<T>().Count() instead

获取类型 T 的所有部分的计数。

public int GetPartsCountOfType<T> () where T : DocumentFormat.OpenXml.Packaging.OpenXmlPart;
[System.Obsolete("Use GetPartsOfType<T>().Count() instead")]
public int GetPartsCountOfType<T> () where T : DocumentFormat.OpenXml.Packaging.OpenXmlPart;
member this.GetPartsCountOfType : unit -> int (requires 'T :> DocumentFormat.OpenXml.Packaging.OpenXmlPart)
[<System.Obsolete("Use GetPartsOfType<T>().Count() instead")>]
member this.GetPartsCountOfType : unit -> int (requires 'T :> DocumentFormat.OpenXml.Packaging.OpenXmlPart)
Public Function GetPartsCountOfType(Of T As OpenXmlPart) () As Integer

类型参数

T

部件的类型。

返回

此类型的部件数。

属性

适用于