Syntax
[OperationContractAttribute(Name="Acquire",
Action="Acquire",
AsyncPattern=false,
IsOneWay=false,
IsInitiating=true,
IsTerminating=false)]
[WebInvokeAttribute(BodyStyle=2,
Method="POST",
RequestFormat=1,
ResponseFormat=1)]
public void Acquire(
string id,
TwainUserInterfaceFlags flags,
object userData
)
<WebInvokeAttribute(Method="POST",
BodyStyle=WebMessageBodyStyle.WrappedRequest,
RequestFormat=WebMessageFormat.Json,
ResponseFormat=WebMessageFormat.Json,
IsBodyStyleSetExplicitly=True,
IsRequestFormatSetExplicitly=True,
IsResponseFormatSetExplicitly=True)>
<OperationContractAttribute(Name="Acquire", Action="Acquire")>
Sub Acquire( _
ByVal id As String, _
ByVal flags As Leadtools.Twain.TwainUserInterfaceFlags, _
ByVal userData As Object _
)
[WebInvokeAttribute(Method="POST",
BodyStyle=WebMessageBodyStyle.WrappedRequest,
RequestFormat=WebMessageFormat.Json,
ResponseFormat=WebMessageFormat.Json,
IsBodyStyleSetExplicitly=true,
IsRequestFormatSetExplicitly=true,
IsResponseFormatSetExplicitly=true)]
[OperationContractAttribute(Name="Acquire", Action="Acquire")]
void Acquire(
String^ id,
Leadtools.Twain.TwainUserInterfaceFlags flags,
Object^ userData
)
Parameters
id
The scanning session Id.
flags
Indicates whether to display the manufacturer's user interface.