Syntax
[WebInvokeAttribute(Method="POST",
BodyStyle=WebMessageBodyStyle.WrappedRequest,
RequestFormat=WebMessageFormat.Json,
ResponseFormat=WebMessageFormat.Json,
IsBodyStyleSetExplicitly=true,
IsRequestFormatSetExplicitly=true,
IsResponseFormatSetExplicitly=true)]
[OperationContractAttribute(Name="Init", Action="Init")]
string Init(
string manufacturer,
string productFamily,
string version,
string application,
object userData
)
<WebInvokeAttribute(Method="POST",
BodyStyle=WebMessageBodyStyle.WrappedRequest,
RequestFormat=WebMessageFormat.Json,
ResponseFormat=WebMessageFormat.Json,
IsBodyStyleSetExplicitly=True,
IsRequestFormatSetExplicitly=True,
IsResponseFormatSetExplicitly=True)>
<OperationContractAttribute(Name="Init", Action="Init")>
Function Init( _
ByVal manufacturer As String, _
ByVal productFamily As String, _
ByVal version As String, _
ByVal application As String, _
ByVal userData As Object _
) As String
[WebInvokeAttribute(Method="POST",
BodyStyle=WebMessageBodyStyle.WrappedRequest,
RequestFormat=WebMessageFormat.Json,
ResponseFormat=WebMessageFormat.Json,
IsBodyStyleSetExplicitly=true,
IsRequestFormatSetExplicitly=true,
IsResponseFormatSetExplicitly=true)]
[OperationContractAttribute(Name="Init", Action="Init")]
String^ Init(
String^ manufacturer,
String^ productFamily,
String^ version,
String^ application,
Object^ userData
)
Parameters
manufacturer
The manufacturer's name.
productFamily
The application product family.
version
The TWAIN version information.
application
The application name.
Return Value
The created session id.