Syntax
[OperationContractAttribute(Name="SetVersion",
Action="SetVersion",
AsyncPattern=false,
IsOneWay=false,
IsInitiating=true,
IsTerminating=false)]
[WebInvokeAttribute(BodyStyle=2,
Method="POST",
RequestFormat=1,
ResponseFormat=1)]
public string SetVersion(
TwainVersion version,
object userData
)
<OperationContractAttribute(Name:="SetVersion",
Action:="SetVersion",
AsyncPattern:=false,
IsOneWay:=false,
IsInitiating:=true,
IsTerminating:=false),
WebInvokeAttribute(BodyStyle:=2,
Method:="POST",
RequestFormat:=1,
ResponseFormat:=1)>
Public MustOverride Function SetVersion(
ByVal version As TwainVersion,
ByVal userData As Object
) As String
public:
[OperationContractAttribute(Name=L"SetVersion",
Action=L"SetVersion",
AsyncPattern=false,
IsOneWay=false,
IsInitiating=true,
IsTerminating=false)]
[WebInvokeAttribute(BodyStyle=2,
Method=L"POST",
RequestFormat=1,
ResponseFormat=1)]
virtual String^ SetVersion(
TwainVersion^ version,
Object^ userData
) abstract
Parameters
version
The TWAIN version to set, see TwainVersion for a list of available versions.
Return Value
Returns "Success" or throws an exception on error.