The class Document is the represenation of a LogiKal document.
More...
|
| Guid | CoreObjectId => Id |
| | This property is deprecated. Please use CoreObjectBase.Id instead. More...
|
| |
|
| CoreObjectBase (IServiceFactory< IApiService > serviceFactory, Guid coreObjectId, bool ownsObject=true) |
| |
| T | CallService< T > (Func< IApiService, T > serviceCall, Guid projectGuid=default(Guid), [CallerMemberName] string callerMethod=null) |
| | Calls a service function and raises an error if it fails. More...
|
| |
| T | CallServiceWithMessage< T > (Func< IApiService, T > serviceCall, Guid projectGuid=default(Guid), [CallerMemberName] string callerMethod=null) |
| | Calls a service function and raises an error if it fails. More...
|
| |
|
override void | Dispose (bool disposing) |
| |
| const string | NotSupportedCauseNotImplemented = "This method is not implemented, therefore not supported." |
| | Default message for methods which are not supported because they are not implemented. More...
|
| |
|
Action< Disposable > | Disposed |
| |
The class Document is the represenation of a LogiKal document.
◆ Edit()
| DocumentInfo Ofcas.Lk.Api.Client.Core.Document.Edit |
( |
string |
key, |
|
|
object |
value |
|
) |
| |
◆ GetContent() [1/3]
| void Ofcas.Lk.Api.Client.Core.Document.GetContent |
( |
Stream |
target | ) |
|
This method is deprecated. Please use GetContent() instead.
- Parameters
-
| target | The content from the document is written in this stream. If the document has no content, the length of target is zero. |
- Exceptions
-
| Exception | If getting the document content failed. |
◆ GetContent() [2/3]
| Stream Ofcas.Lk.Api.Client.Core.Document.GetContent |
( |
| ) |
|
The content from the document.
- Returns
- A stream with the content of the document.
◆ GetContent() [3/3]
| Stream Ofcas.Lk.Api.Client.Core.Document.GetContent |
( |
bool |
writeAccess | ) |
|
The content from the document.
- Parameters
-
| writeAccess | Describes the specific access mode. If the value is true, the file will be open with write access. The document will be locked until the object has been released by the user. |
- Returns
- A stream with the content of the document.
◆ SetContent()
| void Ofcas.Lk.Api.Client.Core.Document.SetContent |
( |
Stream |
stream | ) |
|
Set the content of the document. This method may be executed if write access has been set.
- Parameters
-
| stream | The stream which should be set. |
The documentation for this class was generated from the following file: