Initializing help system before first use

LoadModel Method (Stream, String, String, String, String)

Load a compiled model into memory. This method loads a compiled model (Binary Model file) from a stream into memory. While loading a model from a stream, Mosel also automatically opens any additional modules that are required by this model.

Namespace:   Mosel
Assembly:  xprmdn (in xprmdn.dll) Version: 5.0.2.0
Syntax
C#
public XPRMModel LoadModel(
	Stream src,
	string options,
	string pass,
	string privkey,
	string pubkeys
)

Parameters

src
Type:  System.IOStream
stream containing binary model data
options
Type:  SystemString
loader options (may be null). Supported options include: item flagdescription>"c"check file signature (if the file is signed)"V"accept to load only signed file. Loading will fail if the signature cannot be verified."F"if this flag is set, the argument 'pass' is interpreted as a file containing the password. Otherwise 'pass' is the password itself.
pass
Type:  SystemString
password or password file (may be null)
privkey
Type:  SystemString
private key file (may be null)
pubkeys
Type:  SystemString
file of public keys (may be null); this file contains a list of public key file names. If the file is signed and the signature has to be checked (options codes 'c' and 'V' in the options string above), verification will be performed against these public keys. The special public key file name "*" refers to all installed keys (these keys are used when no list is provided).

Return Value

Type:  XPRMModel
A new model instance of type XPRMModel created from a binary model file.
See Also