Determines whether a TWAIN source is installed.
[OperationContractAttribute(Name="IsAvailable", Action="IsAvailable")]
[WebInvokeAttribute(BodyStyle=WebMessageBodyStyle.WrappedRequest,
IsBodyStyleSetExplicitly=true,
IsRequestFormatSetExplicitly=true,
IsResponseFormatSetExplicitly=true,
Method="POST",
RequestFormat=WebMessageFormat.Json,
ResponseFormat=WebMessageFormat.Json)]
bool IsAvailable(
string ,
object
)
'Declaration
<OperationContractAttribute(Name="IsAvailable", Action="IsAvailable")>
<WebInvokeAttribute(BodyStyle=WebMessageBodyStyle.WrappedRequest,
IsBodyStyleSetExplicitly=True,
IsRequestFormatSetExplicitly=True,
IsResponseFormatSetExplicitly=True,
Method="POST",
RequestFormat=WebMessageFormat.Json,
ResponseFormat=WebMessageFormat.Json)>
Function IsAvailable( _
ByVal As String, _
ByVal As Object _
) As Boolean
'Usage
Dim instance As ITwainService
Dim id As String
Dim userData As Object
Dim value As Boolean
value = instance.IsAvailable(id, userData)
[OperationContractAttribute(Name="IsAvailable", Action="IsAvailable")]
[WebInvokeAttribute(BodyStyle=WebMessageBodyStyle.WrappedRequest,
IsBodyStyleSetExplicitly=true,
IsRequestFormatSetExplicitly=true,
IsResponseFormatSetExplicitly=true,
Method="POST",
RequestFormat=WebMessageFormat.Json,
ResponseFormat=WebMessageFormat.Json)]
bool IsAvailable(
String^ ,
Object^
)
Parameters
- id
- The scanning session Id.
- userData
- The user data.
Return Value
true if at least one TWAIN source is installed; otherwise, false.