Interface IDocumentOwner
Объект, владеющий документами.
Inherited Members
Namespace: Ascon.Polynom.Api
Assembly: Ascon.Polynom.Api.dll
Syntax
public interface IDocumentOwner : IAbleToHaveId, IApiObject, IApiEntity, INotifyPropertyChanged
Properties
AllDocuments
Возвращает коллекцию всех документов, которыми владеет объект.
Declaration
IApiReadOnlyCollection<IOwnedDocument> AllDocuments { get; }
Property Value
| Type | Description |
|---|---|
| IApiReadOnlyCollection<IOwnedDocument> |
Documents
Возвращает коллекцию документов, которыми владеет объект.
Declaration
IApiReadOnlyCollection<IDocument> Documents { get; }
Property Value
| Type | Description |
|---|---|
| IApiReadOnlyCollection<IDocument> |
Methods
LinkDocument(IDocument)
Привязывает документ к объекту-владельцу.
Declaration
void LinkDocument(IDocument document)
Parameters
| Type | Name | Description |
|---|---|---|
| IDocument | document | Документ. |
UnlinkDocument(IDocument)
Отвязывает документ от объекта-владельца.
Declaration
bool UnlinkDocument(IDocument document)
Parameters
| Type | Name | Description |
|---|---|---|
| IDocument | document | Документ. |
Returns
| Type | Description |
|---|---|
| bool | true, если документ был в коллекции; иначе false. |