Get the document context in docstream

Namespace:  IpernityNET.IpernityObjects
Assembly:  IpernityNET (in IpernityNET.dll) Version: 0.3.1.0 (0.3.1.0)

Syntax

C#
public DocumentContext GetContext(
	int prev,
	int next,
	Thumbsize size
)
Visual Basic (Declaration)
Public Function GetContext ( _
	prev As Integer, _
	next As Integer, _
	size As Thumbsize _
) As DocumentContext
Visual C++
public:
DocumentContext^ GetContext(
	int prev, 
	int next, 
	Thumbsize size
)

Parameters

prev
Type: System..::.Int32
Only return some previous (oldest) documents. (Value is from 1 to 50)
next
Type: System..::.Int32
Only return some next (newest) documents. (Value is from 1 to 50)
size
Type: IpernityNET..::.Thumbsize
Choose your prefered size for thumbnails: 75, 100, 240, 500 or 560

Return Value

The DocumentContext

Remarks

This method encapsulates doc.getContext "read" permission is necessary to access to private docs.

Exceptions

ExceptionCondition
IpernityNET..::.IpernityExceptionThrowed when Ipernity returned an error
IpernityNET.IpernityObjects..::.ObjectNotConfiguredExceptionThrowed when an Ipernity object has not been configured.

See Also