Dynamsoft Home|Product Home

CapSet Method

Description

Sets the current capability using the container type specified by CapType property. The current capability is specified by Capability property.

Syntax

Boolean ObjectName. CapSet()

Parameters

None.

Return value

Boolean. 
 

TRUE indicates success. FALSE indicates failure.

When an error occurs and IfThrowException property is TRUE, an exception will be thrown.

When FALSE is returned or an exception is thrown, check ErrorCode property and ErrorString property for error information.

Remarks

For different capability container types, the properties need to be set are different. Before calling CapSet(), the corresponding properties should be set. Refer to How to Negotiate Capability with Different Capability Container Types for details.

See also

Capability property, CapGet(), CapType property

Sample

Refer to How to Negotiate Capability with Different Capability Container Types.