Share via


OpenXmlPartContainer.GetPartsOfType Método

Definición

Sobrecargas

GetPartsOfType<T>()

Enumera todas las partes secundarias del tipo T especificado de esta parte.

GetPartsOfType<T>(ICollection<T>)
Obsoletos.

Obtiene todas las partes secundarias del tipo T especificado en partCollection de esta parte.

GetPartsOfType<T>()

Enumera todas las partes secundarias del tipo T especificado de esta parte.

public System.Collections.Generic.IEnumerable<T> GetPartsOfType<T> () where T : DocumentFormat.OpenXml.Packaging.OpenXmlPart;
member this.GetPartsOfType : unit -> seq<'T (requires 'T :> DocumentFormat.OpenXml.Packaging.OpenXmlPart)> (requires 'T :> DocumentFormat.OpenXml.Packaging.OpenXmlPart)
Public Function GetPartsOfType(Of T As OpenXmlPart) () As IEnumerable(Of T)
Public Iterator Function GetPartsOfType(Of T As OpenXmlPart) () As IEnumerable(Of T)

Parámetros de tipo

T

Clase derivada de OpenXmlPart.

Devoluciones

Se aplica a

GetPartsOfType<T>(ICollection<T>)

Precaución

Use GetPartsOfType<T> to manually add to a collection

Obtiene todas las partes secundarias del tipo T especificado en partCollection de esta parte.

public void GetPartsOfType<T> (System.Collections.Generic.ICollection<T> partCollection) where T : DocumentFormat.OpenXml.Packaging.OpenXmlPart;
[System.Obsolete("Use GetPartsOfType<T> to manually add to a collection")]
public void GetPartsOfType<T> (System.Collections.Generic.ICollection<T> partCollection) where T : DocumentFormat.OpenXml.Packaging.OpenXmlPart;
member this.GetPartsOfType : System.Collections.Generic.ICollection<'T (requires 'T :> DocumentFormat.OpenXml.Packaging.OpenXmlPart)> -> unit (requires 'T :> DocumentFormat.OpenXml.Packaging.OpenXmlPart)
[<System.Obsolete("Use GetPartsOfType<T> to manually add to a collection")>]
member this.GetPartsOfType : System.Collections.Generic.ICollection<'T (requires 'T :> DocumentFormat.OpenXml.Packaging.OpenXmlPart)> -> unit (requires 'T :> DocumentFormat.OpenXml.Packaging.OpenXmlPart)
Public Sub GetPartsOfType(Of T As OpenXmlPart) (partCollection As ICollection(Of T))

Parámetros de tipo

T

Clase derivada de OpenXmlPart.

Parámetros

partCollection
ICollection<T>

Colección de elementos que se va a rellenar.

Atributos

Excepciones

Se produce cuando partCollection es null.

Se aplica a