Share via


Source.CanEdit method

Verifies that the current user has sufficient rights to edit the source and that it is in a state that permits committing.

Namespace:  Microsoft.Office.Server.Search.Administration.Query
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Function CanEdit As Boolean
'Usage
Dim instance As Source
Dim returnValue As Boolean

returnValue = instance.CanEdit()
public bool CanEdit()

Return value

Type: System.Boolean
true if the user can edit the source; otherwise, false.

Remarks

If CanEdit returns false, than calling Commit would generate an exception.

See also

Reference

Source class

Source members

Microsoft.Office.Server.Search.Administration.Query namespace