Partager via


OpenXmlPartContainer.GetPartsCountOfType<T> Méthode

Définition

Attention

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

Obtient le nombre de toutes les parties du 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

Paramètres de type

T

Type du composant.

Retours

Nombre de parties de ce type.

Attributs

S’applique à