VintaSoft Twain .NET SDK 15.4: Documentation for .NET developer
Vintasoft.Twain Namespace / KodakDeviceProfileCollection Class / SetCurrentProfile Methods / SetCurrentProfile(String) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
SetCurrentProfile(String) Method (KodakDeviceProfileCollection)
In This Topic
Changes the device current profile to the specified profile.
Syntax
'Declaration

Public Overloads Function SetCurrentProfile( _
ByVal profileName
The name of the profile, which is stored in this collection and must set as device current profile.
As String _
) As Boolean
public bool SetCurrentProfile(
string profileName
)

Parameters

profileName
The name of the profile, which is stored in this collection and must set as device current profile.

Return Value

True if current profile is changed; otherwise, false.
Exceptions
ExceptionDescription
Thrown if device is disposed.
Thrown if device is closed or opened.
Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also