Syntax
[OperationContractAttribute(Name="GetCapability",
Action="GetCapability",
AsyncPattern=false,
IsOneWay=false,
IsInitiating=true,
IsTerminating=false)]
[WebInvokeAttribute(BodyStyle=2,
Method="POST",
RequestFormat=1,
ResponseFormat=1)]
public Stream GetCapability(
string id,
TwainCapabilityType capabilityType,
TwainGetCapabilityMode mode,
object userData
)
<OperationContractAttribute(Name:="GetCapability",
Action:="GetCapability",
AsyncPattern:=false,
IsOneWay:=false,
IsInitiating:=true,
IsTerminating:=false),
WebInvokeAttribute(BodyStyle:=2,
Method:="POST",
RequestFormat:=1,
ResponseFormat:=1)>
Public Function GetCapability(
ByVal id As String,
ByVal capabilityType As TwainCapabilityType,
ByVal mode As TwainGetCapabilityMode,
ByVal userData As Object
) As Stream
public:
[OperationContractAttribute(Name=L"GetCapability",
Action=L"GetCapability",
AsyncPattern=false,
IsOneWay=false,
IsInitiating=true,
IsTerminating=false)]
[WebInvokeAttribute(BodyStyle=2,
Method=L"POST",
RequestFormat=1,
ResponseFormat=1)]
Stream^ GetCapability(
String^ id,
TwainCapabilityType^ capabilityType,
TwainGetCapabilityMode^ mode,
Object^ userData
)
Parameters
id
The scanning session Id.
capabilityType
The capability to get.
mode
The capability values to get.
Return Value
A TwainCapability that represents the specified capability value(s).