Syntax
[WebInvokeAttribute(BodyStyle=2,
Method="POST",
RequestFormat=1,
ResponseFormat=1)]
[OperationContractAttribute(Name="Init",
Action="Init",
AsyncPattern=false,
IsOneWay=false,
IsInitiating=true,
IsTerminating=false)]
public string Init(
string manufacturer,
string productFamily,
string version,
string application,
object userData,
TwainStartupFlags startupFlags
)
<WebInvokeAttribute(BodyStyle:=2,
Method:="POST",
RequestFormat:=1,
ResponseFormat:=1),
OperationContractAttribute(Name:="Init",
Action:="Init",
AsyncPattern:=false,
IsOneWay:=false,
IsInitiating:=true,
IsTerminating:=false)>
Public Function Init(
ByVal manufacturer As String,
ByVal productFamily As String,
ByVal version As String,
ByVal application As String,
ByVal userData As Object,
ByVal startupFlags As TwainStartupFlags
) As String
public:
[WebInvokeAttribute(BodyStyle=2,
Method=L"POST",
RequestFormat=1,
ResponseFormat=1)]
[OperationContractAttribute(Name=L"Init",
Action=L"Init",
AsyncPattern=false,
IsOneWay=false,
IsInitiating=true,
IsTerminating=false)]
String^ Init(
String^ manufacturer,
String^ productFamily,
String^ version,
String^ application,
Object^ userData,
TwainStartupFlags^ startupFlags
)
Parameters
manufacturer
The manufacturer's name.
productFamily
The application product family.
version
The TWAIN version information.
application
The application name.
startupFlags
Twain startup flags
Return Value
The created session id.