Skip to main content

ModelCenter APIs 2026 R1

Interface ModelCenter::INetworkLocations

Last update: 18.06.2026

Definition: ModelCenter/src/ModelCenter.odl (line 5062)

Caches network location credentials and fetches them when needed to avoid reauthentication when accessing a previously accessed network.

Members

Public functions

Function add

void ModelCenter::INetworkLocations::add(BSTR address, BSTR username, BSTR password)

Add the specified network location to the list.

Parameters:

  • address: the location to add (string form of a URI)
  • username: the username to use for logging into this location
  • password: the password to use for logging into this location

Parameters:

  • BSTR address
  • BSTR username
  • BSTR password

Return type: void

Function exists

boolean ModelCenter::INetworkLocations::exists(BSTR address)

Is the specified location in the list of network locations?

Parameters:

  • address: The location to be checked on.

Returns:

True if the address exists, else false.

Parameters:

  • BSTR address

Return type: boolean

Function removeAddress

void ModelCenter::INetworkLocations::removeAddress(BSTR address)

Remove the specified network location to the list.

Parameters:

  • address: the location to remove

Parameters:

  • BSTR address

Return type: void

Connect with Ansys