다음을 통해 공유


OpenXmlPartContainer.GetPartsCountOfType<T> Method

Definition

Caution

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

Gets the count of all parts of type 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

Type Parameters

T

The type of the part.

Returns

The number of parts of this type.

Attributes

Applies to