DOFCredentialscreate Method (String)OpenDOF Object Access Library
Create a DOFCredentials by reading from a file specified by filename.

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
public static DOFCredentials create(
	string filename
)

Parameters

filename
Type: SystemString
The filename from which to read the DOFCredentials. This must not be null.

Return Value

Type: DOFCredentials
The DOFCredentials read from the given file. Never returns null.
Exceptions

ExceptionCondition
ArgumentExceptionIf filename is null.
DOFExceptionThe file is empty or too large.
FileNotFoundExceptionThe file could not be found.
IOExceptionThe file could not be read.
SecurityExceptionIf a security manager exists and its checkWrite method denies write access to the file.
DOFException
Remarks

Create a DOFCredentials by reading from a file specified by filename.
See Also

Reference