DocumentLockExtensionsLockAsync Method DocuWare Platform .NET API
Locks this instance and returns a DocumentLock object which can be used to unlock this document later.

Namespace: DocuWare.Platform.ServerClient
Assembly: DocuWare.Platform.ServerClient (in DocuWare.Platform.ServerClient.dll) Version: Version 6.6
Syntax

C#
public static Task<DocumentLock> LockAsync(
	this Document document,
	string operation
)

Parameters

document
Type: DocuWare.Platform.ServerClientDocument
The document.
operation
Type: SystemString
A client identifier associated with lock operation.

Return Value

Type: TaskDocumentLock
A DocumentLock which can be used to unlock this document later.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Document. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also

Reference