Share via


CoAuthLocks.Add Method

Gets a CoAuthLock object that represents a lock added to a specified range.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function Add ( _
    Range As Object, _
    Type As WdLockType _
) As CoAuthLock
'Usage
Dim instance As CoAuthLocks
Dim Range As Object
Dim Type As WdLockType
Dim returnValue As CoAuthLock

returnValue = instance.Add(Range, Type)
CoAuthLock Add(
    Object Range,
    WdLockType Type
)

Parameters

Return Value

Type: Microsoft.Office.Interop.Word.CoAuthLock
A CoAuthLock object that represents a lock added to a specified range.

See Also

Reference

CoAuthLocks Interface

CoAuthLocks Members

Microsoft.Office.Interop.Word Namespace