[WebInvokeAttribute(Method="POST",
BodyStyle=WebMessageBodyStyle.WrappedRequest,
RequestFormat=WebMessageFormat.Json,
ResponseFormat=WebMessageFormat.Json,
IsBodyStyleSetExplicitly=true,
IsRequestFormatSetExplicitly=true,
IsResponseFormatSetExplicitly=true)]
[OperationContractAttribute(Name="GetCapability", Action="GetCapability")]
Stream GetCapability(
string ,
TwainCapabilityType ,
TwainGetCapabilityMode ,
object
)
'Declaration
<WebInvokeAttribute(Method="POST",
BodyStyle=WebMessageBodyStyle.WrappedRequest,
RequestFormat=WebMessageFormat.Json,
ResponseFormat=WebMessageFormat.Json,
IsBodyStyleSetExplicitly=True,
IsRequestFormatSetExplicitly=True,
IsResponseFormatSetExplicitly=True)>
<OperationContractAttribute(Name="GetCapability", Action="GetCapability")>
Function GetCapability( _
ByVal As String, _
ByVal As TwainCapabilityType, _
ByVal As TwainGetCapabilityMode, _
ByVal As Object _
) As Stream
'Usage
Dim instance As ITwainService
Dim id As String
Dim capabilityType As TwainCapabilityType
Dim mode As TwainGetCapabilityMode
Dim userData As Object
Dim value As Stream
value = instance.GetCapability(id, capabilityType, mode, userData)
[WebInvokeAttribute(Method="POST",
BodyStyle=WebMessageBodyStyle.WrappedRequest,
RequestFormat=WebMessageFormat.Json,
ResponseFormat=WebMessageFormat.Json,
IsBodyStyleSetExplicitly=true,
IsRequestFormatSetExplicitly=true,
IsResponseFormatSetExplicitly=true)]
[OperationContractAttribute(Name="GetCapability", Action="GetCapability")]
Stream^ GetCapability(
String^ ,
TwainCapabilityType ,
TwainGetCapabilityMode ,
Object^
)
Parameters
- id
- The scanning session Id.
- capabilityType
- The capability to get.
- mode
- The capability values to get.
- userData
- The user data.
Return Value
A
TwainCapability that represents the specified capability value(s).