SelectSource Method (ITwainService)
Summary
Selects a source for acquiring images.
Syntax
[WebInvokeAttribute(BodyStyle=WebMessageBodyStyle.WrappedRequest,
IsBodyStyleSetExplicitly=true,
IsRequestFormatSetExplicitly=true,
IsResponseFormatSetExplicitly=true,
Method="POST",
RequestFormat=WebMessageFormat.Json,
ResponseFormat=WebMessageFormat.Json)]
[OperationContractAttribute(Name="SelectSource", Action="SelectSource")]
void SelectSource(
string id,
string sourceName,
object userData
)
<WebInvokeAttribute(BodyStyle=WebMessageBodyStyle.WrappedRequest,
IsBodyStyleSetExplicitly=True,
IsRequestFormatSetExplicitly=True,
IsResponseFormatSetExplicitly=True,
Method="POST",
RequestFormat=WebMessageFormat.Json,
ResponseFormat=WebMessageFormat.Json)>
<OperationContractAttribute(Name="SelectSource", Action="SelectSource")>
Sub SelectSource( _
ByVal id As String, _
ByVal sourceName As String, _
ByVal userData As Object _
)
[WebInvokeAttribute(BodyStyle=WebMessageBodyStyle.WrappedRequest,
IsBodyStyleSetExplicitly=true,
IsRequestFormatSetExplicitly=true,
IsResponseFormatSetExplicitly=true,
Method="POST",
RequestFormat=WebMessageFormat.Json,
ResponseFormat=WebMessageFormat.Json)]
[OperationContractAttribute(Name="SelectSource", Action="SelectSource")]
void SelectSource(
String^ id,
String^ sourceName,
Object^ userData
)
Parameters
id
The scanning session Id.
sourceName
String contains source name to be selected.