Syntax
[WebGetAttribute(BodyStyle=1,
RequestFormat=1,
ResponseFormat=1,
UriTemplate="GetPage?id={id}&pageNumber={pageNumber}&format={format}&bpp={bpp}&width={width}&h" + "eight={height}&userData={userData}")]
[OperationContractAttribute(Name="GetPage",
Action="GetPage",
AsyncPattern=false,
IsOneWay=false,
IsInitiating=true,
IsTerminating=false)]
public Stream GetPage(
string id,
int pageNumber,
RasterImageFormat format,
int bpp,
int width,
int height,
object userData
)
<OperationContractAttribute(Name="GetPage", Action="GetPage")>
<WebGetAttribute(BodyStyle=WebMessageBodyStyle.Wrapped,
IsBodyStyleSetExplicitly=True,
IsRequestFormatSetExplicitly=True,
IsResponseFormatSetExplicitly=True,
RequestFormat=WebMessageFormat.Json,
ResponseFormat=WebMessageFormat.Json,
UriTemplate="GetPage?id={id}&pageNumber={pageNumber}&format={format}&bpp={bpp}&width={width}&height={height}&userData={userData}")>
Function GetPage( _
ByVal id As String, _
ByVal pageNumber As Integer, _
ByVal format As RasterImageFormat, _
ByVal bpp As Integer, _
ByVal width As Integer, _
ByVal height As Integer, _
ByVal userData As Object _
) As Stream
[OperationContractAttribute(Name="GetPage", Action="GetPage")]
[WebGetAttribute(BodyStyle=WebMessageBodyStyle.Wrapped,
IsBodyStyleSetExplicitly=true,
IsRequestFormatSetExplicitly=true,
IsResponseFormatSetExplicitly=true,
RequestFormat=WebMessageFormat.Json,
ResponseFormat=WebMessageFormat.Json,
UriTemplate="GetPage?id={id}&pageNumber={pageNumber}&format={format}&bpp={bpp}&width={width}&height={height}&userData={userData}")]
Stream^ GetPage(
String^ id,
int pageNumber,
RasterImageFormat format,
int bpp,
int width,
int height,
Object^ userData
)
Parameters
id
The scanning session Id.
pageNumber
The 1-based page number.
bpp
The image bits-per-pixel.
Return Value
The image data.