Check if a document object is protected by the "Protect Pages" functionality in umbraco

Namespace: umbraco
Assembly:   umbraco (in umbraco)
Version: 1.0.2698.41384

Syntax

Visual Basic (Declaration)
Public Shared Function IsProtected ( _
	DocumentId As Integer, _
	Path As String _
) As Boolean
C#
public static bool IsProtected (
	int DocumentId,
	string Path
)
Visual C++
public:
static bool IsProtected (
	int DocumentId, 
	String^ Path
)

Parameters

DocumentId
System.Int32
The identifier of the document object to check
Path
System.String
The full path of the document object to check

Return Value

True if the document object is protected