Back to Devexpress

DocumentManagerServiceExtensions.GetDocumentsByParentViewModel(IDocumentManagerService, Object) Method

corelibraries-devexpress-dot-mvvm-dot-documentmanagerserviceextensions-dot-getdocumentsbyparentviewmodel-x28-devexpress-dot-mvvm-dot-idocumentmanagerservice-system-dot-object-x29.md

latest2.4 KB
Original Source

DocumentManagerServiceExtensions.GetDocumentsByParentViewModel(IDocumentManagerService, Object) Method

Static extension method that returns a collection of documents whose Parent View Model (ISupportParentViewModel) is equal to the specified View Model.

Namespace : DevExpress.Mvvm

Assembly : DevExpress.Mvvm.v25.2.dll

NuGet Packages : DevExpress.Mvvm, DevExpress.Win.Navigation

Declaration

csharp
public static IEnumerable<IDocument> GetDocumentsByParentViewModel(
    this IDocumentManagerService service,
    object parentViewModel
)
vb
<ExtensionAttribute>
Public Shared Function GetDocumentsByParentViewModel(
    service As IDocumentManagerService,
    parentViewModel As Object
) As IEnumerable(Of IDocument)

Parameters

NameTypeDescription
serviceIDocumentManagerService

A System.Type value specifying the type of the service.

| | parentViewModel | Object |

An object that is passed to the view model of the created view via the ISupportParentViewModel.ParentViewModel property.

|

Returns

TypeDescription
IEnumerable<IDocument>

A collection of objects implementing the IDocument interface.

|

See Also

DocumentManagerServiceExtensions Class

DocumentManagerServiceExtensions Members

DevExpress.Mvvm Namespace