Share via


Bookmark.Locks Property

Gets the co-authoring locks in the Bookmark.

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

Syntax

'Declaration
ReadOnly Property Locks As CoAuthLocks
CoAuthLocks Locks { get; }

Property Value

Type: Microsoft.Office.Interop.Word.CoAuthLocks
The co-authoring locks in the Bookmark.

Exceptions

Exception Condition
COMException

Co-authoring is not enabled in the document that contains the bookmark.

MissingMemberException

This property is used in a Word 2007 project.

Remarks

This property can be used only in co-authoring enabled documents. If you attempt to access this property on a document that is not enabled for co-authoring, you will receive a COMException.

Note

This method appears in IntelliSense in Word 2007 projects that target the .NET Framework 4. However, this property cannot be used in Word 2007 projects.

.NET Framework Security

See Also

Reference

Bookmark Interface

Microsoft.Office.Tools.Word Namespace