Error processing SSI file
LEADTOOLS WCF (Leadtools.Services.Twain assembly)

Show in webframe

GetCapability Method (ITwainService)






The scanning session Id.
The capability to get.
The capability values to get.
The user data.
Gets the TwainCapability value.
Syntax
[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 id,
   TwainCapabilityType capabilityType,
   TwainGetCapabilityMode mode,
   object userData
)
'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 id As String, _
   ByVal capabilityType As TwainCapabilityType, _
   ByVal mode As TwainGetCapabilityMode, _
   ByVal userData 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^ id,
   TwainCapabilityType capabilityType,
   TwainGetCapabilityMode mode,
   Object^ userData
) 

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).
Requirements

Target Platforms

See Also

Reference

ITwainService Interface
ITwainService Members

Error processing SSI file