ArchestraObject Toolkit Reference Guide PDF
ArchestraObject Toolkit Reference Guide PDF
Reference Guide
Revision A
Last Revision: 10/20/08
Copyright
© 2008 Invensys Systems, Inc. All Rights Reserved.
All rights reserved. No part of this documentation shall be reproduced, stored in a
retrieval system, or transmitted by any means, electronic, mechanical,
photocopying, recording, or otherwise, without the prior written permission of
Invensys Systems, Inc. No copyright or patent liability is assumed with respect to
the use of the information contained herein. Although every precaution has been
taken in the preparation of this documentation, the publisher and the author
assume no responsibility for errors or omissions. Neither is any liability assumed
for damages resulting from the use of the information contained herein.
The information in this documentation is subject to change without notice and does
not represent a commitment on the part of Invensys Systems, Inc. The software
described in this documentation is furnished under a license or nondisclosure
agreement. This software may be used or copied only in accordance with the terms
of these agreements.
Trademarks
All terms mentioned in this documentation that are known to be trademarks or
service marks have been appropriately capitalized. Invensys Systems, Inc. cannot
attest to the accuracy of this information. Use of a term in this documentation
should not be regarded as affecting the validity of any trademark or service mark.
Alarm Logger, ActiveFactory, ArchestrA, Avantis, DBDump, DBLoad, DT Analyst,
Factelligence, FactoryFocus, FactoryOffice, FactorySuite, FactorySuite A2, InBatch,
InControl, IndustrialRAD, IndustrialSQL Server, InTouch, MaintenanceSuite,
MuniSuite, QI Analyst, SCADAlarm, SCADASuite, SuiteLink, SuiteVoyager,
WindowMaker, WindowViewer, Wonderware, Wonderware Factelligence, and
Wonderware Logger are trademarks of Invensys plc, its subsidiaries and affiliates.
All other brands may be trademarks of their respective owners.
3
Contents
Welcome.......................................... 11
Documentation Conventions.............................................11
Technical Support .............................................................12
CMxDataTypeArray Class..............................................375
CMxDataTypeArray Properties...................................375
CMxDataTypeArray Constructors ..............................376
CMxDataTypeArray Method .......................................377
CMxDataTypeArray Operator Overloads ...................377
CMxElapsedTime Class ..................................................379
CMxElapsedTime Property..........................................379
CMxElapsedTime Constructors...................................379
CMxElapsedTime Method............................................380
CMxElapsedTime Operator Overloads .......................381
CMxElapsedTimeArray Class ........................................386
CMxElapsedTimeArray Properties .............................386
CMxElapsedTimeArray Constructors .........................387
CMxElapsedTimeArray Method..................................388
CMxElapsedTimeArray Operator Overloads..............389
CMxInternationalizedString Class ................................390
CMxInternationalizedString Properties .....................390
CMxInternationalizedString Constructors .................391
CMxInternationalizedString Methods ........................392
GetString Method.........................................................392
SetString Method .........................................................393
Set Method....................................................................393
CMxInternationalizedString Operator Overloads......393
CMxInternationalizedStringArray Class.......................396
CMxInternationalizedStringArray Properties ...........396
CMxInternationalizedStringArray Constructors .......397
CMxInternationalizedStringArray Methods ..............398
CMxInternationalizedStringArray Operator
Overloads..................................................................399
CMxReference Class........................................................402
CMxReference Property ...............................................402
CMxReference Constructors ........................................402
CMxReference Method .................................................403
CMxReference Operator Overloads.............................403
CMxReferenceArray Class..............................................405
CMxReferenceArray Properties...................................405
CMxReferenceArray Constructors ..............................406
CMxReferenceArray Method .......................................407
CMxReferenceArray Operator Overloads ...................407
CMxBigString Class........................................................440
CMxBigString Constructors ........................................440
CMxBigString Operator Overloads .............................441
CMxBigStringArray Class ..............................................442
CMxBigStringArray Constructors...............................442
CMxBigStringArray Operator Overloads ...................443
CMxInternalDumpLoadData Class ...............................445
CMxInternalDumpLoadData Property .......................445
CMxInternalDumpLoadData Constructors ................445
CMxInternalFailoverData Class ....................................446
CMxInternalFailoverData Property............................446
CMxInternalFailoverData Constructors.....................446
CMxDataQuality Class ...................................................447
CMxDataQuality Property...........................................447
CMxDataQuality Constructors....................................448
CMxDataQuality Methods ...........................................449
CMxDataQuality Operator Overloads ........................450
CMxIndirectBase Class...................................................451
CMxIndirectBase Properties .......................................452
CMxIndirectBase Constructor .....................................454
CMxIndirectBase Methods ..........................................455
CMxIndirectWriteOnly Class .........................................457
CMxIndirectWriteOnly Property.................................457
CMxIndirectWriteOnly Constructor ...........................457
CMxIndirect Class...........................................................458
CMxIndirect Properties................................................458
CMxIndirect Constructor .............................................460
CMxIndirect Method ....................................................461
Welcome
Documentation Conventions
This documentation uses the following conventions:
Technical Support
Wonderware Technical Support offers a variety of support
options to answer any questions on Wonderware products
and their implementation.
Before you contact Technical Support, refer to the relevant
section(s) in this documentation for a possible solution to the
problem. If you need to contact technical support for help,
have the following information ready:
• The type and version of the operating system you are
using.
Chapter 1
Class Reference
ArchestrA.Toolkit
ArchestrA.Toolkit is the common namespace for all the
classes in the toolkit.
AObjectBase Class
AObjectBase class is the base class of the ConfigtimeBase
and RuntimeBase classes.
Provides common functionality for configtime and runtime
classes like Dictionary access, Logger access, Attribute Get
and Put, Register and Unregister of Configtime/Runtime
sethandlers.
Syntax
public class AObjectBase : _APrimitiveBase
AObjectBase Properties
The following are the properties of the AObjectBase class.
• AObjectInstance Property
• ClassName Property
• DictionaryInstance Property
• MajorVersion Property
• MinorVersion Property
• Runtime Property
• Tagname Property
AObjectInstance Property
Provides access to set/get the instance of the object class.
Syntax
public object AObjectInstance { get; set; }
Return Value
object
ClassName Property
Provides access to the name of the object class.
Syntax
public string ClassName { get; }
Return Value
string
DictionaryInstance Property
Provides access to the Dictionary for this object.
Syntax
public Dictionary DictionaryInstance { get; }
Return Value
Dictionary
MajorVersion Property
Provides access to the major version of this object.
Syntax
public string MajorVersion { get; }
Return Value
string
MinorVersion Property
Provides access to the minor version of this object.
Syntax
public string MinorVersion { get; }
Return Value
string
Runtime Property
Provides indication if the object is currently in runtime or
configtime.
Syntax
public bool Runtime { get; }
Return Value
bool
true: when executing in runtime code.
false: when executing in configtime code.
Tagname Property
Provides access to the Tagname of the object.
Syntax
public string Tagname { get; }
Return Value
string
AObjectBase Methods
The following are the methods of the AObjectBase class.
• AddErrorMessage Method
• AddWarningMessage Method
• AttributeExists Method
• GetAttributeHandle Method
• GetIsLocked Method (string)
• GetName Method
• GetPrimitiveID Method
• LogError Method
• LogException Method
• LogInfo Method
• LogTrace Method
• LogWarning Method
• RegisterConfigtimeSetHandler Method
• RegisterRuntimeSetHandler Method
• StoreObject Method
• UnregisterConfigtimeSetHandler Method
• UnregisterRuntimeSetHandler Method
AddErrorMessage Method
Provides a method to add an error message to the site.
Syntax
public void AddErrorMessage(string message);
Parameter
message
string value that holds the message.
AddWarningMessage Method
Provides a method to add a warning message to the site.
Syntax
public void AddWarningMessage(string message);
Parameter
message
string value that holds the message.
AttributeExists Method
Provides a method to check the existence of an Attribute by
name.
Syntax
public bool AttributeExists(string fullName);
Parameter
fullName
Attribute external name.
Return Value
bool
Parameters
localMessage
Additional information to add to the exception message.
ex
Exception value to be formatted.
Return Value
string
This is a concatenation of the localMessage string and the
formatted exception string.
Parameters
fullName
Attribute external name.
property
Attribute property to access.
Return Value
CMxValue
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID.
propertyId
Attribute property to access.
Return Value
CMxValue
GetAttributeHandle Method
Provides a method to get an Attribute handle by name.
Syntax
public AttributeHandle GetAttributeHandle(string
fullName);
Parameter
fullName
Attribute external name.
Return Value
AttributeHandle
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID.
Return Value
bool
true: if the attribute is locked.
false: if the attribute is unlocked.
GetName Method
Provides a method to get the name of an attribute by ID and
primitive ID.
Syntax
public string GetName(
short attributeId,
short primitiveId
);
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID.
Return Value
string
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID.
Return Value
int
Returns -1 in case of a non-array attribute.
GetPrimitiveID Method
Provides a method to get a primitive ID by name.
Syntax
public short GetPrimitiveID(string primName);
Parameter
primName
Primitive internal name.
Return Value
short
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID.
Return Value
MxSecurityClassification
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID.
Return Value
MxDataType
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID.
Return Value
CMxValue
LogError Method
Provides a method to write an error message to the logger.
Syntax
public void LogError(string _message);
Parameter
_message
string value that holds the error message to be logged.
LogException Method
Provides a method to write a formatted exception to the
logger.
Syntax
public void LogException(Exception ex);
Parameter
ex
Exception value to be logged.
LogInfo Method
Provides a method to write an information message to the
logger.
Syntax
public void LogInfo(string _message);
Parameter
_message
string value that holds information to be logged.
LogTrace Method
Provides a method to write a trace message to the logger.
Syntax
public void LogTrace(string _message);
Parameter
_message
string value that holds trace message to be logged.
LogWarning Method
Provides a method to write a warning message to the logger.
Syntax
public void LogWarning(string _message);
Parameter
_message
string value that holds warning message to be logged.
RegisterConfigtimeSetHandler Method
Provides a method to register the configtime set handler of
an Attribute by name.
Syntax
public void RegisterConfigtimeSetHandler(
string _attrName,
ConfigtimeSetHandlerDelegate _handler
);
Parameters
_attrName
Attribute external name.
_handler
Handle of configtime set handler delegate.
RegisterRuntimeSetHandler Method
Provides a method to register a runtime set handler to an
Attribute by name.
Syntax
public void RegisterRuntimeSetHandler(
string attrName,
RuntimeSetHandlerDelegate handler
);
Parameters
attrName
Attribute external name.
handler
Handle of runtime set handler delegate.
Parameters
fullName
Attribute external name.
property
Property type.
value
Value to set.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID.
propertyId
Property type.
val
Value to set.
Parameters
fullName
Attribute external name.
numElements
Number of elements to set.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID.
numElements
Number of elements to set.
Parameters
fullName
Attribute external name.
value
Value to set.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID.
val
Value to set.
StoreObject Method
Provides a method to encode a C# object into a custom
structure.
Syntax
public MxCustomStruct StoreObject(
int id,
object obj
);
Parameters
id
ID of the CustomStruct.
obj
C# object to be stored.
Return Value
MxCustomStruct
UnregisterConfigtimeSetHandler Method
Provides a method to unregister the configtime set handler of
an Attribute by name.
Syntax
public void UnregisterConfigtimeSetHandler(string
_attrName);
Parameter
_attrName
Attribute external name.
UnregisterRuntimeSetHandler Method
Provides a method to unregister the runtime set handler of
an Attribute by name.
Syntax
public void UnregisterRuntimeSetHandler(string
attrName);
Parameter
attrName
Attribute external name.
ConfigtimeBase Class
This class provides functionality such as Configtime events
handling, Migrate, Dumpload, Primitive wrappers(for
Input,Output, and InputOutput primitives), Virtual
primitives and Dynamic attributes management.
Syntax
public class ConfigtimeBase : AObjectBase,
IObjectEvent2, IObjectEvent, IMigratePrimitive,
IPrimitivePackage, IValueSupport
Remarks
ConfigtimeBase class is derived from AObjectBase class
which is part of the ArchestrA.Toolkit namespace.
ConfigtimeBase Properties
The following are the properties of the ConfigtimeBase class.
• AutoRecoverySupported Property
• IsTemplate Property
• ParentPrimitive Property
• Site Property
• ThisPrimitive Property
AutoRecoverySupported Property
Provides indication of support for recovery of Dynamic
Attributes and Virtual Primitives during dump/load.
Syntax
public bool AutoRecoverySupported { get; }
Return Value
bool
IsTemplate Property
Provides indication that a template or an instance is
executing the code.
Syntax
public bool IsTemplate { get; }
Return Value
bool
true if template is executing the code.
false if instance is executing the code.
ParentPrimitive Property
Provides access to the parent Primitive ID.
Syntax
public short ParentPrimitive { get; }
Return Value
short
Site Property
Provides access to the ConfigtimeSite.
Syntax
public IPrimitivePackageSite5 Site { get; }
Return Value
IPrimitivePackageSite5
Remarks
The toolkit provides wrappers for most of the commonly used
functions such as AddAttribute and so on.
An advanced user can access additional functions from
IPrimitivePackageSite5 using the Site Property.
Example to access a primitive's execution order from
configtime code:
Site.GetPrimitivesExecutionOrder(sPrimitiveId, out
pExecutionOrderInfo);
ThisPrimitive Property
Provides access to the current Primitive ID.
Syntax
public short ThisPrimitive { get; }
Return Value
short
ConfigtimeBase Methods
The following are the methods of the ConfigtimeBase class.
• AddAttribute Method (string, MxAttributeCategory,
MxDataType, bool, bool)
• AddAttribute Method (string, MxAttributeCategory,
MxDataType, int, bool, bool)
• AddAttribute Method (string, MxAttributeCategory,
MxDataType, MxPropertyLockedEnum,
MxSecurityClassification, bool, bool, bool, short)
• AddAttribute Method (string, MxAttributeCategory,
MxDataType, MxPropertyLockedEnum,
MxSecurityClassification, int, bool, bool, bool, short)
• DeleteAttribute Method
• DeletePrimitive Method
• GetHeirarchialName Method
• GetVirtualPrimitiveIdByInternalName Method
• IsDynamicPrimitive Method
• IsStaticPrimitive Method
• IsVirtualPrimitive Method
• RecoverAttributes Method
• RenamePrimtive Method
• UpdateRecoveryData Method
• UpdateRecoveryData Method
• CanRenamePrimtive Method
• CanDeletePrimitive Method
• CanAddPrimitive Method
Parameters
Refer to the section AddAttribute Method Parameters and
Return Value.
Return Value
Refer to the section AddAttribute Method Parameters and
Return Value.
Parameters
Refer to the section AddAttribute Method Parameters and
Return Value.
Return Value
Refer to the section AddAttribute Method Parameters and
Return Value.
Parameters
Refer to the section AddAttribute Method Parameters and
Return Value.
Return Value
Refer to the section AddAttribute Method Parameters and
Return Value.
Parameters
Refer to the section AddAttribute Method Parameters and
Return Value.
Return Value
Refer to the section AddAttribute Method Parameters and
Return Value.
• MxCategory_SystemInternal
• MxCategory_SystemSetsOnly
• MxCategory_SystemWriteable
• MxCategoryCalculated
• MxCategoryCalculatedRetentive
• MxCategoryWriteable_C_Lockable
• MxCategoryWriteable_S
• MxCategoryWriteable_U
• MxCategoryWriteable_UC
• MxCategoryWriteable_UC_Lockable
• MxCategoryWriteable_US
• MxCategoryWriteable_USC
• MxCategoryWriteable_USC_Lockable
type
The following data types are supported.
• MxBigString
• MxBoolean
• MxDataQualityType
• MxDataTypeEnum
• MxDouble
• MxElapsedTime
• MxFloat
• MxInteger
• MxInternationalizedString
• MxNoData
• MxQualifiedEnum
• MxQualifiedStruct
• MxReferenceType
• MxSecurityClassificationEnum
• MxStatusType
• MxString
• MxTime
cfgSetHandler
true: Enables the configtime dynamic set handler. The user
should add a case for the dynamic attribute in the
<objectname>Configtime_ConfigtimeDynamic function, as
the attribute will not be set by default, when this parameter
is marked as true.
rtSetHandler
true: Enables the runtime dynamic set handler. The user
should add a case for the dynamic attribute in the
<objectname>Runtime_RuntimeDynamic function, as the
attribute will not be set by default, when this parameter is
marked as true.
length
Indicates the length of the array, pass 0 in case of non-array
attribute.
lockType
The following lock types are supported.
• MxLockedInMe
• MxLockedInParent
• MxPropertyLockedEnumEND
• MxPropertyLockedEnumEND
• MxUndefinedLockedStatus
• MxUnLockedsecurity
security
The following security classifications are supported.
• MxSecurityConfigure
• MxSecurityFreeAccess
• MxSecurityOperate
• MxSecuritySecuredWrite
• MxSecurityTune
• MxSecurityUndefined
• MxSecurityVerifiedWrite
• MxSecurityViewOnly
excludeFromDumpLoad
If true, excludes the attribute from Dumpload.
id
Fills the out parameter with the attribute ID of newly
created dynamic attribute.
Return Value
true if the attribute is successfully added.
false if the attribute with the provided name already exists,
or if the user tries to add an attribute with unsupported
category or data type.
Parameters
virtualPrimitiveName
Name of the virtual primitive.
internalName
New internal name of the instance.
externalName
New External name of the instance.
Return Value
true if the Primitive instance addition is successful.
false if the user tries to add a primitive with the same name
of an existing primitive or if the user tries to create an
instance of the non-virtual primitive.
Parameters
virtualPrimitiveName
Name of the virtual primitive.
internalName
New internal name of the instance.
externalName
New External name of the instance.
excludeFromDumpLoad
true excludes the virtual Primitive from Dumpload.
id
fills the out parameter with the primitive ID of newly
created virtual primitive.
Return Value
bool
true if the Primitive instance addition is successful.
false if the Primitive instance addition fails.
DeleteAttribute Method
Provides a method to delete a dynamic attribute by name.
Syntax
public bool DeleteAttribute(string name);
Parameter
name
Name of the dynamic attribute.
Return Value
bool
true if the dynamic attribute deletion is successful.
false if the user tries to delete a non-existing dynamic
attribute.
DeletePrimitive Method
Provides a method to delete a Virtual Primitive instance by
the Primitives Internal Name.
Syntax
public bool DeletePrimitive(string internalName);
Parameter
internalName
Internal name of the virtual primitive instance.
Return Value
bool
true if Primitive instance deletion is successful.
false if the user tries to delete a non-existing primitive
instance or the user tries to delete a non-virtual primitive.
GetHeirarchialName Method
Provides a method to get the Hierarchical Name of the
primitive.
Syntax
public string GetHeirarchialName(short primitiveId);
Parameter
primitiveId
Primitive Id.
Return Value
string
Remarks
For an object, the method returns null.
GetVirtualPrimitiveIdByInternalName Method
Provides a method to get the ID of a child Virtual Primitive
using the Primitives Internal Name. If more than one child
primitive is found the first one is returned.
Syntax
public short GetVirtualPrimitiveIdByInternalName(string
internalName);
Parameter
internalName
internal name of the virtual primitive instance.
Return Value
short
Returns the primitive ID of the virtual primitive.
Remarks
This method finds child primitives.
IsDynamicPrimitive Method
Determines if the primitive is an instance of a virtual
primitive.
Syntax
public bool IsDynamicPrimitive(short id);
Parameter
id
Primitive ID.
Return Value
bool
true if the primitive is of type dynamic otherwise false.
IsStaticPrimitive Method
Determines if the primitive is static.
Syntax
public bool IsStaticPrimitive(short id);
Parameter
id
Primitive ID.
Return Value
bool
true if the primitive is of type static otherwise false.
IsVirtualPrimitive Method
Determines if the primitive is virtual.
Syntax
public bool IsVirtualPrimitive(short id);
Parameter
id
Primitive ID.
Return Value
bool
true if the primitive is of type virtual, otherwise false.
RecoverAttributes Method
Provides a method to recreate dynamic attributes and
Virtual Primitives Instances from information stored in the
value.This is not typically used by the Object Developer and
is added in auto-generated code by the toolkit when
Dump/Load Support option is enabled.
An automatically inserted Set Handler associated with the
CMxInternalDumpLoadData Attribute calls the
RecoverAttributes method. The Set Handler executes during
Galaxy Load.The Set Handler is inserted by the toolkit for all
Attributes of type CMxInternalDumpLoadData.
RecoverAttributes recreates the Dynamic Attributes and
Primitives stored in the CMxInternalDumpLoadData
Attribute. The values associated with the Dynamic
Attributes are recovered from the Dump/Load CSV file.
Syntax
public void RecoverAttributes(CMxValue value);
Parameter
value
The value contains the stored Attribute information
(Name/DataType) for the Attributes.
RenamePrimtive Method
Provides a method to rename a Virtual Primitive instance
using the Primitives Internal Name.
Syntax
public bool RenamePrimtive(
string primitiveInternalName,
string newInternalName,
string newExternalName
);
Parameters
primitiveInternalName
Internal name of the virtual primitive instance.
newInternalName
New Internal name of the virtual primitive instance.
newExternalName
New External name of the virtual primitive instance.
Return Value
bool
true if the primitive internal and external names are
renamed.
Remarks
The user can rename an instance of a Virtual Primitive at
Configtime and check the result using
PrimitiveResult.message and PrimitiveResult.status.
UpdateRecoveryData Method
Provides a method to update dynamic attributes name,
category, security, type, cfgSetHandler, and runtime
SetHandler information for Dump/Load. Also updates Child
Primitives external and internal names for Dump/Load.
The user should call this method each time a dynamic
attribute's shape (name, category, security, type,
cfgSetHandler and runtime SetHandler information) is
changed.
Syntax
public void UpdateRecoveryData();
Remarks
Example of the usage of UpdateRecoveryData in configtime
code:
Set("DynamicAttributeName",
EATTRIBUTEPROPERTY.idxAttribPropSecurityClassificati
on, MxSecurityClassification.MxSecurityTune);
UpdateRecoveryData();
CanRenamePrimtive Method
Provides a method to check if a virtual primitive instance can
be renamed.
Syntax
public bool CanRenamePrimtive(string
primitiveInternalName, string newExternalName)
Parameter
primitiveInternalName
Internal name of the virtual primitive instance.
newExternalName
New External name of the virtual primitive instance.
Return Value
bool
true if the primitive instance can be renamed with the
External name.
CanDeletePrimitive Method
Provides a method to check if a virtual primitive instance can
be deleted.
Syntax
public bool CanDeletePrimitive(string internalName)
Parameter
internalName
Internal name of the virtual primitive instance.
Return Value
bool
true if the primitive instance can be deleted with the Internal
name.
CanAddPrimitive Method
Provides a method to check if a virtual primitive instance can
be added.
Syntax
public bool CanAddPrimitive(string
virtualPrimitiveName, string internalName, string
externalName)
Parameter
virtualPrimitiveName
Internal name of the virtual primitive.
internalName
New Internal name of the virtual primitive instance.
externalName
New External name of the virtual primitive instance.
Return Value
bool
true if the primitive instance can be added with the Internal
and External names.
ConfigtimeBase Attributes
The following are the attributes of the ConfigtimeBase class.
• AttributeResult Attribute
• PrimitiveResult Attribute
AttributeResult Attribute
Holds the result of the last Attribute Action.
Syntax
public ConfigtimeBase.AttrOpStatus AttributeResult;
Remarks
AttributeResult.status.bstrReason,
AttributeResult.status.eResult will give the information on
last Attribute Action.
PrimitiveResult Attribute
Holds the result of the last Primitive Action.
Syntax
public ConfigtimeBase.PrimOpStatus PrimitiveResult;
Remarks
PrimitiveResult.message, PrimitiveResult.status will give
the information on last Primitive Action.
ConfigtimeBase Events
The following are the events of the ConfigtimeBase class.
• ConfigtimeDynamic Event
• ConfigtimeInitialize Event
• ConfigtimeMigrate Event
• ConfigtimeValidate Event
• PostAssign Event
• PostAssignTo Event
• PostCheckIn Event
• PostCreate Event
• PostDelete Event
• PostDeploy Event
• PostRename Event
• PostUnassign Event
• PostUnassignFrom Event
• PostUndeploy Event
• PreAssignTo Event
• PreCheckIn Event
• PreDelete Event
• PreDeploy Event
• PreRename Event
• PreUnassign Event
• PreUndeploy Event
• PreValidate Event
ConfigtimeDynamic Event
This event fires when the value of a dynamic attribute is
changed at configtime.
The toolkit automatically generates code to register the
delegate <objectname>Configtime_ConfigtimeDynamic for
this event.
Add a separate case to implement set handler code for each
your dynamic attributes in this delegate.
Syntax
public event ConfigtimeDynamicSetHandlerDelegate
ConfigtimeDynamic;
Remarks
This is a common set handler for all the configtime dynamic
attributes. Object developer has to handle code separately for
each dynamic attribute as required.
ConfigtimeInitialize Event
This event fires at the time of Object Initialization.
The toolkit automatically generates code to register the
delegate <objectname>Configtime_ConfigtimeInitialize for
this event.
Any custom initialization can be done here, including caching
of attribute values, primitive IDs and so on.
Syntax
public event ConfigtimeInitializeDelegate
ConfigtimeInitialize;
ConfigtimeMigrate Event
ConfigtimeMigrate event is fired when importing a template
into a Galaxy that contains a previous version of the
template. The template of the previous version must be
derived or instantiated for migrate to execute.
The toolkit automatically generates code to register the
delegate <objectname>Configtime_ConfigtimeMigrate for
this event.
Using the MigrateHandler parameter, user can access the
previous version's attribute information in this delegate.
Syntax
public event MigrateDelegate ConfigtimeMigrate;
ConfigtimeValidate Event
ConfigtimeValidate event is fired when the Object is
validated.
Validate sets the warning or error text for the object. It is
used to check conditions that would not be checked using a
SetHandler, such as reporting that an object was not
configured, or that combinations of attributes are illegal.
The toolkit automatically generates code to register the
delegate <objectname>Configtime_ConfigtimeValidate for
this event.
Syntax
public event ConfigtimeValidateDelegate
ConfigtimeValidate;
PostAssign Event
PostAssign event will be fired for a child object after it is
assigned to a parent node. The Child node has to be
configured to support the PostAssign event.
The toolkit automatically generates code to register the
delegate <objectname>Configtime_PostAssign for this event.
Syntax
public event GeneralDelegate PostAssign;
PostAssignTo Event
PostAssignTo event will be fired for a parent object after a
child node is assigned to it. The Parent node has to be
configured to support the PostAssignTo event.
The toolkit automatically generates code to register the
delegate <objectname>Configtime_PostAssignTo for this
event.
Syntax
public event GeneralDelegate PostAssignTo;
PostCheckIn Event
PostCheckIn event is fired after an Object is checked-in.
The toolkit automatically generates code to register the
delegate <objectname>Configtime_PostCheckIn for this
event.
Syntax
public event SupportEventDelegate PostCheckIn;
PostCreate Event
PostCreate event is fired after an object (or derived template)
is created.
The toolkit automatically generates code to register the
delegate <objectname>Configtime_PostCreate for this event.
One purpose for implementing this method is to ensure that
the initial state of the primitive is valid.
Syntax
public event ObjectEventDelegate PostCreate;
PostDelete Event
PostDelete event is fired after the object is deleted.
The toolkit automatically generates code to register the
delegate <objectname>Configtime_PostDelete for this event.
Syntax
public event SupportEventDelegate PostDelete;
PostDeploy Event
PostDeploy event is fired after the object is deployed.
The toolkit automatically generates code to register the
delegate <objectname>Configtime_PostDeploy for this event.
Syntax
public event SupportEventDelegate PostDeploy;
PostRename Event
PostRename event is fired after the object is renamed.
The toolkit automatically generates code to register the
delegate <objectname>Configtime_PostRename for this
event.
Syntax
public event RenameDelegate PostRename;
PostUnassign Event
PostUnassign event will be fired on the child object after it is
unassigned from its parent.
The toolkit automatically generates code to register the
delegate <objectname>Configtime_PostUnassign for this
event.
Syntax
public event GeneralDelegate PostUnassign;
PostUnassignFrom Event
PostUnassignFrom event will be fired on the parent object
after a child object is unassigned from it.
The toolkit automatically generates code to register the
delegate <objectname>Configtime_PostUnassignFrom for
this event.
Syntax
public event GeneralDelegate PostUnassignFrom;
PostUndeploy Event
PostUndeploy will be fired after the object is undeployed.
The toolkit automatically generates code to register the
delegate <objectname>Configtime_PostUndeploy for this
event.
Syntax
public event SupportEventDelegate PostUndeploy;
PreAssignTo Event
PreAssignTo will be fired on a parent object before the child
object is assigned to it.
The toolkit automatically generates code to register the
delegate <objectname>Configtime_PreAssignTo for this
event.
Syntax
public event GeneralDelegate PreAssignTo;
PreCheckIn Event
PreCheckIn event will be fired before the object is checked-in.
The toolkit automatically generates code to register the
delegate <objectname>Configtime_PreCheckIn for this
event.
Syntax
public event SupportEventDelegate PreCheckIn;
PreDelete Event
PreDelete event is fired before the object is deleted.
The toolkit automatically generates code to register the
delegate <objectname>Configtime_PreDelete for this event.
Syntax
public event SupportEventDelegate PreDelete;
PreDeploy Event
PreDeploy event is fired before the object is deployed.
The toolkit automatically generates code to register the
delegate <objectname>Configtime_PreDeploy for this event.
Syntax
public event DeployDelegate PreDeploy;
PreRename Event
PreRename event is fired before the object is renamed.
The toolkit automatically generates code to register the
delegate <objectname>Configtime_PreRename for this event.
Syntax
public event RenameDelegate PreRename;
PreUnassign Event
PreUnassign event is fired before the object is unassigned.
The toolkit automatically generates code to register the
delegate <objectname>Configtime_PreUnassign for this
event.
Syntax
public event GeneralDelegate PreUnassign;
PreUndeploy Event
PreUndeploy event is fired before the object is undeployed.
The toolkit automatically generates code to register the
delegate <objectname>Configtime_PreUndeploy for this
event.
Syntax
public event ConfigtimeValidateDelegate
ConfigtimeValidate;
PreValidate Event
PreValidate event is fired before the object is validated.
The toolkit automatically generates code to register the
delegate <objectname>Configtime_PreValidate for this
event.
Syntax
public event ObjectEventDelegate PreValidate;
InputOutputPrimitive Class
This class provides a wrapper for InputOutput Primitive.
Syntax
public class InputOutputPrimitive :
ConfigtimeBase.PrimitiveWrapper
InputOutputPrimitive Properties
The following are the properties of the InputOutputPrimitive
class.
• DataType Property
• Reference Property
• ReferenceSecondary Property
DataType Property
Provides access to set/get the Data Type.
Syntax
public MxDataType DataType { get; set; }
Return Value
MxDataType
Reference Property
Provides access to set/get the Reference as a reference string.
Identifies the target attribute to which the value is to be
written.
Syntax
public string Reference { get; set; }
Return Value
string
ReferenceSecondary Property
Provides access to set/get the Secondary Reference as a
reference string. ReferenceSecondary identifies the source
attribute from which the value and quality are to be read.
Syntax
public string ReferenceSecondary { get; set; }
Return Value
string
InputOutputPrimitive Constructor
The following is the constructor of the InputOutputPrimitive
class.
• InputOutputPrimitive Constructor
InputOutputPrimitive Constructor
Syntax
public InputOutputPrimitive(ConfigtimeBase
_parentPrimitive);
Parameter
_parentPrimitive
Instance of ConfigtimeBase.
InputOutputPrimitive Methods
The following are the methods of the InputOutputPrimitive
class.
• Initialize Method (short)
InputPrimitive Class
This class provides a wrapper for Input Primitive.
Syntax
public class InputPrimitive :
ConfigtimeBase.PrimitiveWrapper
InputPrimitive Properties
The following are the properties of the InputPrimitive class.
• DataType Property
• InputSource Property
DataType Property
Provides access to set/get the DataType.
Syntax
public MxDataType DataType { get; set; }
Return Value
MxDataType
InputSource Property
Provides access to set/get the Input Source as a reference
string.
Syntax
public string InputSource { get; set; }
Return Value
string
InputPrimitive Constructor
The following is the constructor of the InputPrimitive class.
• InputPrimitive Constructor
InputPrimitive Constructor
Syntax
public InputPrimitive(ConfigtimeBase _parentPrimitive);
Parameter
_parentPrimitive
Instance of ConfigtimeBase.
InputPrimitive Methods
The following are the methods of the InputPrimitive class.
• Initialize Method (short)
OutputPrimitive Class
This class provides a wrapper for Output Primitive.
Syntax
public class OutputPrimitive :
ConfigtimeBase.PrimitiveWrapper
OutputPrimitive Properties
The following are the properties of the OutputPrimitive
class.
• DataType Property
• OutputDest Property
DataType Property
Provides access to set/get the Data Type.
Syntax
public MxDataType DataType { get; set; }
Return Value
MxDataType
OutputDest Property
Provides access to set/get the Output Destination as a
reference string.
Syntax
public string OutputDest { get; set; }
Return Value
string
OutputPrimitive Constructor
The following is the constructor of the OutputPrimitive class.
• OutputPrimitive Constructor
OutputPrimitive Constructor
Syntax
public OutputPrimitive(ConfigtimeBase
_parentPrimitive);
Parameter
_parentPrimitive
Instance of ConfigtimeBase.
OutputPrimitive Methods
The following are the methods of the OutputPrimitive class.
• Initialize Method (short)
PrimitiveWrapper Class
Base class of all IO Wrappers.
Syntax
public class PrimitiveWrapper
PrimitiveWrapper Property
The following is the property of the PrimitiveWrapper class.
• IsGood Property
IsGood Property
Provides indication that the wrapper has been initialized
successfully.
Syntax
public bool IsGood { get; }
Return Value
bool
PrimitiveWrapper Constructor
The following is the constructor of the PrimitiveWrapper
class.
• PrimitiveWrapper Constructor
PrimitiveWrapper Constructor
Syntax
public PrimitiveWrapper(ConfigtimeBase
_parentPrimitive);
Parameter
_parentPrimitive
Instance of the parent (ConfigtimeBase.)
PrimitiveWrapper Methods
The following are the methods of the PrimitiveWrapper class.
• Initialize Method (short)
• Initialize Method (string)
AttrOpStatus Struct
Provides access to the result value associated with the
following Attribute operations.
• AddAttribute
• DeleteAttribute
Syntax
public struct AttrOpStatus
AttrOpStatus Attributes
The following are the attributes of the AttrOpStatus Struct.
• message attribute
• status attribute
message attribute
Contains description about the status of last attribute
operation.
Syntax
public string message;
status attribute
Contains the value of
ArchestrA.Core.AttributeOperationResult.eResult of last
attribute operation.
Syntax
public AttributeOperationResult status;
PrimOpStatus Struct
Provides access to the result value associated with the
following Primitive operations to remove the need to add
message parameters for each operation.
• AddPrimitive
• CanAddPrimitive
• CanRenamePrimitive
• GetVirtualPrimitiveIdByInternalName
• DeletePrimitive
• RenamePrimitive
Syntax
public struct PrimOpStatus
PrimOpStatus Attributes
The following are the attributes of the PrimOpStatus Struct.
• message attribute
• status attribute
message attribute
Contains description about the status of the last primitive
operation.
Syntax
public string message;
status attribute
Contains the value of ArchestrA.Core. EPRIMITIVEOPSTATUS
of the last primitive operation.
Syntax
public EPRIMITIVEOPSTATUS status;
RuntimeBase Class
This Class provides functionality such as, Support for
Runtime Events, Add / Remove attributes, Failover Support
for Dynamic Attributes, Advise Only Active support and get /
set of value, time and quality for attributes.
Syntax
public class RuntimeBase : AObjectBase,
IPrimitiveDeployment, IValueSupport,
IPrimitiveRuntimeScanOnDemandCS, IPrimitiveRuntime3,
IPrimitiveRuntime
Remarks
The Runtime Base class is derived from:
AObjectBase which is a part of the ArchestrA.Toolkit
namespace and IPrimitiveDeployment, IValueSupport,
IPrimitiveRuntimeScanOnDemandCS, IPrimitiveRuntime2
and IPrimitiveRuntime which are the parts of the
ArchestrA.Core namespace.
RuntimeBase Properties
The following are the properties of the RuntimeBase class.
• DynamicAttributeFailoverEnabled Property
• ScanOnDemandEnabled Property
• Site Property
• ThisPrimitive Property
DynamicAttributeFailoverEnabled Property
Indicates if fail-over support is enabled for runtime dynamic
attribute.
Syntax
public bool DynamicAttributeFailoverEnabled { get; }
Return Value
bool
Returns true if Failover support is enabled for the object.
ScanOnDemandEnabled Property
Indicates if the “advise only active” support is enabled for the
Object. It returns true only if Advise Only Active is enabled
for both the Object and the Galaxy.
Syntax
public bool ScanOnDemandEnabled { get; }
Return Value
bool
Site Property
Provides access to the RuntimeSite.
Syntax
public IPrimitiveRuntimeSiteEx2 Site { get; }
Return Value
IPrimitiveRuntimeSiteEx2
Remarks
The toolkit provides wrappers for most of the commonly used
functions like AddAttribute and so on. An advanced user can
access additional functions from IPrimitiveRuntimeSiteEx2
using the Site Property.
Example to enable checkpoint for an attribute:
Site2.CheckpointAttribute(attrID,true);
ThisPrimitive Property
Provides access to the current Primitive ID.
Syntax
public short ThisPrimitive { get; }
Return Value
short
RuntimeBase Constructor
The following is the constructor of the RuntimeBase class.
• RuntimeBase Constructor
RuntimeBase Constructor
This is the default constructor for the RuntimeBase class.
This is not used by the Object Developer. The Object
Developer uses the <object>Runtime() constructor that is
automatically generated by the toolkit.
Syntax
public RuntimeBase();
RuntimeBase Events
Delegates added to the events are called when the
appropriate event is fired by Application Server.
• RuntimeDynamic Event
• RuntimeExecute Event
• RuntimeGetStatusDesc Event
• RuntimeInitialize Event
• RuntimeSetScanState Event
• RuntimeShutdown Event
• RuntimeStartup Event
RuntimeDynamic Event
Fired when the value of a runtime dynamic attribute is
changed. The toolkit automatically generates code to register
the delegate <objectname>Runtime_RuntimeDynamic for
this event.
Syntax
public event RuntimeDynamicSetHandlerDelegate
RuntimeDynamic;
RuntimeExecute Event
Fired on every scan cycle of the hosting AppEngine while the
object is OnScan. The toolkit automatically generates code to
register the delegate <objectname>_RuntimeExecute for this
event.
Syntax
public event RuntimeExecuteDelegate RuntimeExecute;
RuntimeGetStatusDesc Event
Occurs when the run time component requests a detailed
message for an error for example, after a set handler returns
a failure. The toolkit automatically generates code to register
the delegate <objectname>Runtime_RuntimeGetStatusDesc
for this event.
Syntax
public event RuntimeGetStatusDescDelegate
RuntimeGetStatusDesc;
RuntimeInitialize Event
Occurs after the object is created in run time (usually after
deployment, but also after a failover or after the bootstrap is
restarted). Occurs before the Startup event. No attribute
information is available at this time. The toolkit
automatically generates code to register the delegate
<objectname>Runtime_RuntimeInitialize for this event.
Syntax
public event RuntimeInitializeDelegate
RuntimeInitialize;
RuntimeSetScanState Event
Occurs when the object's scan state (OnScan/OffScan) is
changed. The toolkit automatically generates code to register
the delegate <objectname>_ RuntimeSetScanState for this
event.
Syntax
public event RuntimeSetScanStateDelegate
RuntimeSetScanState;
RuntimeShutdown Event
Occurs when the object is shutting down (usually after the
object is set to OffScan, but during a failover OffScan may
not be set). This event does not occur if the object goes off the
network during a network failure. The toolkit automatically
generates code to register the delegate
<objectname>_RuntimeShutdown for this event.
Syntax
public event RuntimeShutdownDelegate RuntimeShutdown;
RuntimeStartup Event
Occurs when the object is started (after the Initialize event
and before it goes OnScan). You can use the event's startup
context to find out whether the object is starting up after a
failover or other reasons. The toolkit automatically generates
code to register the delegate <objectname>_RuntimeStartup
for this event.
Syntax
public event RuntimeStartupDelegate RuntimeStartup;
RuntimeBase Methods
The following are the methods of the RuntimeBase class.
• ActivateLocalAttribute Method (string)
• ActivateLocalAttribute Method (short, string)
• AppendNames Method
• CheckpointDynamicAttributeData Method
• GetDefaultTimeStamp Method
• GetPrimitiveIds Method
• GetPrimitiveInfo Method
• GetPrimitiveRuntimeSite2 Method
• GetStatusDescription Method
• Initialize Method
• ParentPrimitive Method
• RecreateDynamicAttributes Method
• RestoreDynamicAttributes Method
• SendEvent Method
• SetDataToFailoverField Method
• SetHandler Method
• SetScanState Method
• StandbyStartup Method
• StandbyStartup Method
• UpdateDynamicAttributeData Method
Parameter
attributeName
The external name of the attribute.
Return Value
bool
Parameters
attributeId
The attribute ID.
attributeName
The external name of the attribute.
Return Value
bool
Parameter
fullAttributeName
The name of the primitive attribute. The name
fullAttributeName format should be
"PrimitiveName.AttributeName".
Return Value
bool
Parameters
attributeId
The Primitive's attribute ID.
primitiveId
The Primitive ID.
Return Value
bool
Parameters
Refer to the section AddAttribute Method Parameters and
Return Value.
Return Value
Refer to the section AddAttribute Method Parameters and
Return Value.
Parameters
Refer to the section AddAttribute Method Parameters and
Return Value.
Return Value
Refer to the section AddAttribute Method Parameters and
Return Value.
Parameters
Refer to the section AddAttribute Method Parameters and
Return Value.
Return Value
Refer to the section AddAttribute Method Parameters and
Return Value.
Parameters
Refer to the section AddAttribute Method Parameters and
Return Value.
Return Value
Refer to the section AddAttribute Method Parameters and
Return Value.
Parameters
name
Refer to the section AddAttribute Method Parameters and
Return Value.
Return Value
Refer to the section AddAttribute Method Parameters and
Return Value.
category
Supported categories:
MxCategory_Constant
MxCategory_SystemInternal
MxCategory_SystemSetsOnly
MxCategory_SystemWriteable
MxCategoryCalculated
MxCategoryCalculatedRetentive
MxCategoryWriteable_S
MxCategoryWriteable_U
MxCategoryWriteable_UC
MxCategoryWriteable_UC_Lockable
MxCategoryWriteable_US
MxCategoryWriteable_USC
MxCategoryWriteable_USC_Lockable
type
Supported data types:
MxBigString
MxBoolean
MxDataQualityType
MxDataTypeEnum
MxDouble
MxElapsedTime
MxFloat
MxInteger
MxInternationalizedString
MxNoData
MxQualifiedEnum
MxQualifiedStruct
MxReferenceType
MxSecurityClassificationEnum
MxStatusType
MxString
MxTime
setHandler
true: Enables the runtime dynamic set handler.
The user should add a case for the dynamic attribute in the
<objectname>Runtime_RuntimeDynamic function, as the
attribute is not set by default, when this parameter is
marked as true.
length
Indicates the length of the array, pass 0 in case of non-array
attribute.
quality
Supported quality types:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
security
Supported security classifications:
MxSecurityConfigure
MxSecurityFreeAccess
MxSecurityOperate
MxSecuritySecuredWrite
MxSecurityTune
MxSecurityUndefined
MxSecurityVerifiedWrite
MxSecurityViewOnly
excludeFromDumpLoad
If true excludes the attribute from Dumpload.
id
Out parameter with the attribute ID of newly created
dynamic attribute.
Return Value
bool
true: if the attribute is successfully added.
false: fails to add the dynamic attribute if the attribute with
the provided name already exists, or if the user tries to add a
attribute with unsupported category or data type.
AppendNames Method
Appends two names together in a period separated
Application Server format [owner].[child].
Syntax
public string AppendNames(
string owner,
string child
);
Parameters
owner
The owner name.
child
The child name.
Return Value
string
Returns the Archestra name in the format [owner].[child]. If
either name is empty, no period is included.
Parameters
refString
The reference of the attribute of another object, in the
format "ObjectName.AttributeName".
refContext
An empty string is used for this parameter when the
refString parameter is specified as
"ObjectName.AttributeName".
When using a relative reference (like "MyArea.ScanState"
or "MyPlatform.CPULoad") in the refString parameter, the
refContext parameter must be the Tagname property of the
object. The refContext parameter can be empty if the
refString parameter contains an absolute path.
Remarks
After the BindTo() operation, access the value of the Indirect
only if the Indirect's StatusOfLastRead.success = = -1 and
StatusOfLastRead.Category = =
MxStatusCategory.MxCategoryOk
Example
CMxIndirect mxIndirect = BindTo("MyArea.ScanState",
Tagname);
Return Value
CMxIndirect
Parameters
refString
The reference of the attribute of another object, in the
format "ObjectName.AttributeName".
refContext
An empty string is used for this parameter when the
refString parameter is specified as
"ObjectName.AttributeName". When using a relative
reference (like "MyArea.ScanState" or
"MyPlatform.CPULoad") in the refString parameter, the
refContext parameter must be the Tagname property of the
object. The refContext parameter can be empty if the
refString parameter contains an absolute path.
suspended
true: suspend attribute.
false: Activate attribute.
Return Value
CMxIndirect
Remarks
After the BindTo() operation, access the value of the Indirect
only if the Indirect's StatusOfLastRead.success = = -1 and
StatusOfLastRead.Category = =
MxStatusCategory.MxCategoryOk
Parameters
refString
The reference of the attribute of another object in
"ObjectName.AttributeName" format.
refContext
An empty string is used for this parameter when the
refString parameter is specified as
"ObjectName.AttributeName". When using a relative
reference (like "MyArea.ScanState" or
"MyPlatform.CPULoad") in the refString parameter, the
refContext parameter must be the Tagname property of the
object. The refContext parameter can be empty if the
refString parameter contains an absolute path.
Example:
CMxIndirectWriteOnly mxIndirect =
BindToWriteOnly("MyArea.ScanState", Tagname);
Return Value
CMxIndirectWriteOnly
Parameters
refString
The reference of the attribute of another object in
"ObjectName.AttributeName" format.
refContext
An empty string is used for this parameter.
suspended
true: suspend attribute.
false: Activate attribute.
Return Value
CMxIndirectWriteOnly
CheckpointDynamicAttributeData Method
Provides a method to store the values of all dynamic
attributes created at runtime, that were not explicitly
excluded from failover. This method should be called
immediately after a dynamic attribute value is changed.
Syntax
public bool CheckpointDynamicAttributeData();
Return Value
bool
Parameter
name
Name of the Dynamic attribute.
Parameters
name
Name of the Dynamic attribute.
failover
true: remove the attribute from failover.
Parameters
attributeId
The attribute ID.
PrimitiveId
The primitive ID.
name
Fills the name parameter with the attribute external name.
Return Value
bool
true: access to attribute name is success.
false: fails if the user tries to access a non-existing attribute.
Parameters
Refer to the section GetAttributeProperties Method
Parameters and Return Value.
Return Value
Refer to the section GetAttributeProperties Method
Parameters and Return Value.
Parameters
Refer to the section GetAttributeProperties Method
Parameters and Return Value.
Return Value
Refer to the section GetAttributeProperties Method
Parameters and Return Value.
isShared
The out parameter which specifies whether the attribute is
shared
1: if attribute is shared type.
0: if attribute is non-shared type.
isArray
The out parameter which specifies whether the attribute is
array type.
1: if attribute is array type.
0: if attribute is non-array type.
isDynamic
The out parameter which specifies whether the attribute is
dynamic.
1: if attribute is dynamic.
0: if attribute is static.
isSubscribed
The out parameter which specifies whether the attribute is
subscribed.
1: if attribute is subscribed.
0: if attribute is not subscribed.
isCheckpointed
The out parameter which specifies whether the attribute
has check point support.
1: if attribute has checkpointed.
0: if attribute in not checkpointed.
hasTypeChanged
The out parameter which specifies whether the attribute
type is changed.
1: if attribute datatype is changed.
0: if attribute datatype is not changed.
Return Value
bool
true: if the attribute is exits and access to the attribute
properties is successful.
false: if the user tries to access a non-existing attribute.
Syntax
public bool GetBoolean(
string fullName,
out bool value
);
Parameters
Refer to the section GetBoolean Method Parameters and
Return Value
Return Value
Refer to the section GetBoolean Method Parameters and
Return Value
Parameters
Refer to the section GetBoolean Method Parameters and
Return Value
Return Value
Refer to the section GetBoolean Method Parameters and
Return Value
Parameters
Refer to the section GetBoolean Method Parameters and
Return Value
Return Value
Refer to the section GetBoolean Method Parameters and
Return Value
Parameters
Refer to the section GetBoolean Method Parameters and
Return Value
Return Value
Refer to the section GetBoolean Method Parameters and
Return Value
Parameters
Refer to the section GetBoolean Method Parameters and
Return Value
Return Value
Refer to the section GetBoolean Method Parameters and
Return Value
Parameters
Refer to the section GetBoolean Method Parameters and
Return Value
Return Value
Refer to the section GetBoolean Method Parameters and
Return Value
Parameters
Refer to the section GetBoolean Method Parameters and
Return Value
Return Value
Refer to the section GetBoolean Method Parameters and
Return Value
Parameters
Refer to the section GetBoolean Method Parameters and
Return Value.
Return Value
Refer to the section GetBoolean Method Parameters and
Return Value.
Parameters
fullName
External name of the attribute.
quality
The out parameter contains the quality property of Boolean
attribute.
Return Value
bool
true: if the Boolean attribute quality accessing is successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The out parameter contains the quality property of Boolean
attribute.
Return Value
bool
true: if the Boolean attribute quality accessing is successful.
false: if the user tries to access a non-existing attribute.
Parameters
Refer to the section GetCustomEnum Method Parameters
and Return value
Return Value
Refer to the section GetCustomEnum Method Parameters
and Return value
Parameters
Refer to the section GetCustomEnum Method Parameters
and Return value
Return Value
Refer to the section GetCustomEnum Method Parameters
and Return value
Parameters
Refer to the section GetCustomEnum Method Parameters
and Return value
Return Value
Refer to the section GetCustomEnum Method Parameters
and Return value
Parameters
Refer to the section GetCustomEnum Method Parameters
and Return value
Return Value
Refer to the section GetCustomEnum Method Parameters
and Return value
Parameters
Refer to the section GetCustomEnum Method Parameters
and Return value
Return Value
Refer to the section GetCustomEnum Method Parameters
and Return value
Parameters
Refer to the section GetCustomEnum Method Parameters
and Return value
Return Value
Refer to the section GetCustomEnum Method Parameters
and Return value
Parameters
Refer to the section GetCustomEnum Method Parameters
and Return value
Return Value
Refer to the section GetCustomEnum Method Parameters
and Return value
Parameters
Refer to the section GetCustomEnum Method Parameters
and Return value.
Return Value
Refer to the section GetCustomEnum Method Parameters
and Return value.
Parameters
Refer to the section GetCustomStruct Method Parameters
and Return value.
Parameters
Refer to the section GetCustomStruct Method Parameters
and Return value.
Parameters
Refer to the section GetCustomStruct Method Parameters
and Return value.
Parameters
Refer to the section GetCustomStruct Method Parameters
and Return value.
Parameters
Refer to the section GetCustomStruct Method Parameters
and Return value.
Parameters
Refer to the section GetCustomStruct Method Parameters
and Return value.
Parameters
Refer to the section GetCustomStruct Method Parameters
and Return value.
Parameters
fullName
External name of the attribute.
quality
The out parameter contains the quality property of
CustomEnum attribute.
Return Value
bool
true: if the CustomEnum attribute quality accessing is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
Return Value
bool
The out parameter contains the quality property of
CustomEnum attribute.
Parameters
fullName
External name of the attribute.
quality
The out parameter contains the quality property of
CustomStruct array attribute.
Return Value
bool
true: if the CustomStruct array attribute quality accessing is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The out parameter contains the quality property of
CustomStruct array attribute.
Return Value
bool
true: if the CustomStruct array attribute quality accessing is
successful.
false: if the user tries to access a non-existing attribute.
GetDataFromFailoverField Method
Provides a method to get the data stored in the Failover
Attributes as a C# object. The object developer is not
expected to typically use this method.
Syntax
public object GetDataFromFailoverField();
Return Value
object
GetDefaultTimeStamp Method
Provides a method to get the object startup time.
Syntax
public bool GetDefaultTimeStamp(
out DateTime timestamp
);
Parameter
timestamp
The out parameter contains the Object startup time.
Return Value
bool
true: If the object startup time accessing is successful.
false: If the object startup time accessing failed.
Parameters
fullName
External name of the attribute.
quality
The out parameter contains the quality property of Double
array attribute.
Return Value
bool
true: if the Double array attribute quality accessing is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The out parameter contains the quality property of Double
array attribute.
Return Value
bool
true: if the Double array attribute quality accessing is
successful.
false: if the user tries to access a non-existing attribute.
quality
The out parameter contains the quality property of an
ElapsedTime attribute.
time
The out parameter contains the Date and time associated
with the ElapsedTime attribute.
Return Value
bool
true: if the ElapsedTime attribute accessing is successful.
false: if the user tries to access a non-existing attribute.
Parameters
fullName
External name of the attribute.
quality
The out parameter contains the quality property of
ElapsedTime array attribute.
Return Value
bool
true: if ElapsedTime array attribute quality accessing is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The out parameter contains the quality property of
ElapsedTime array attribute.
Return Value
bool
true: if ElapsedTime array attribute quality accessing is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
fullName
External name of the attribute.
quality
The out parameter contains the quality property of Float
array attribute.
Return Value
bool
true: if the Float array attribute quality accessing is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The out parameter contains the quality property of Float
array attribute.
Return Value
bool
true: if the Float array attribute quality accessing is
successful.
false: if the user tries to access a non-existing attribute.
quality
The out parameter contains the quality property of Integer
attribute.
time
The out parameter contains the Date and Time associated
with the Integer attribute.
Return Value
bool
true: if the Integer attribute accessing is successful.
false: if the user tries to access a non-existing attribute.
Parameters
fullName
External name of the attribute.
quality
The out parameter contains the quality property of Integer
array attribute.
Return Value
boo
true: if the Integer array attribute quality accessing is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The out parameter contains the quality property of Integer
array attribute.
Return Value
bool
true: if the Integer array attribute quality accessing is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
fullName
External name of the attribute.
lockStatus
The out parameter contains the LockStatus property of an
attribute.
Return Value
bool
true: if the attribute LockStatus accessing is successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
lockStatus
The out parameter contains the LockStatus property of an
attribute.
Return Value
bool
true: if the attribute LockStatus accessing is successful.
false: if the user tries to access a non-existing attribute.
Parameters
fullName
External name of the attribute.
quality
The out parameter contains the quality property of
MxDataType array attribute.
Return Value
bool
true: if the MxDataType array attribute quality accessing is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The out parameter contains the quality property of
MxDataType array attribute.
Return Value
bool
true: if MxDataType array attribute quality accessing is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
Refer to the section GetMxStatus Method Parameters and
Return value.
Return Value
Refer to the section GetMxStatus Method Parameters and
Return value.
Parameters
Refer to the section GetMxStatus Method Parameters and
Return value.
Return Value
Refer to the section GetMxStatus Method Parameters and
Return value.
Parameters
Refer to the section GetMxStatus Method Parameters and
Return value.
Return Value
Refer to the section GetMxStatus Method Parameters and
Return value.
Parameters
Refer to the section GetMxStatus Method Parameters and
Return value
Return Value
Refer to the section GetMxStatus Method Parameters and
Return value
Parameters
Refer to the section GetMxStatus Method Parameters and
Return value
Return Value
Refer to the section GetMxStatus Method Parameters and
Return value
Parameters
Refer to the section GetMxStatus Method Parameters and
Return value
Return Value
Refer to the section GetMxStatus Method Parameters and
Return value
Parameters
Refer to the section GetMxStatus Method Parameters and
Return value
Return Value
Refer to the section GetMxStatus Method Parameters and
Return value
Parameters
Refer to the section GetMxStatus Method Parameters and
Return value.
Return Value
Refer to the section GetMxStatus Method Parameters and
Return value.
Parameters
fullName
External name of the attribute.
quality
The out parameter contains the quality property of the
MxStatus array attribute.
Return Value
bool
true: if the MxStatus array attribute quality accessing is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The out parameter contains the quality property of
MxStatus array attribute.
Return Value
bool
true: if the MxStatus array attribute quality accessing is
successful.
false: if the user tries to access a non-existing attribute.
GetNormalChildID Method
Provides a method to access the ID of a non-virtual Child
Primitive by its parent primitive ID and primitive internal
name.
Syntax
public short GetNormalChildID(
short parentPrimID,
string primInternalName
);
Parameters
parentPrimID
The parent primitive ID.
primInternalName
The primitive internal name.
Return Value
bool
Parameters
fullName
The Name of the array attribute.
numElements
The out parameter contains the number of elements in the
array.
Return Value
bool
true: if the accessing of number of elements in array
elements is successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
numElements
The out parameter contains the number of elements in the
array.
Return Value
bool
true: if the accessing of number of elements in an array is
successful.
false: if the user tries to access a non-existing attribute.
GetPrimitiveIds Method
Provides a method to return ID's of the primitives in an
object.
Syntax
public bool GetPrimitiveIds(out short[] primitiveIds);
Parameter
primitiveIds
The array contains all the primitive IDs.
Return Value
bool
GetPrimitiveInfo Method
Provides an implementation of IPrimitiveDeployment
member returning the file that contains the aaDEF as a
resource and the ID of the resource in the file.
Syntax
public void GetPrimitiveInfo(
ref string pFilename,
ref int pResourceId
);
Parameters
pFilename
The file name.
pResourceId
The resource ID.
GetPrimitiveRuntimeSite2 Method
Provides access to RuntimeSite2 interface of a primitive by
ID.
Syntax
public IPrimitiveRuntimeSite2
GetPrimitiveRuntimeSite2(short _primID);
Parameter
_primID
The primitive.
Return Value
IPrimitiveRuntimeSite2
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
Return Value
CMxDataQuality
Parameters
fullName
External Name of the attribute.
dataType
The Datatype of an attribute. The supported datatype are:
MxBoolean
MxInteger
MxFloat
MxDouble
MxString
MxTime
MxElapsedTime
MxReferenceType
MxStatusType
MxDataTypeEnum
MxQualifiedEnum
MxQualifiedStruct
quality
The out parameter contains the quality property of an
attribute.
Return Value
bool
true: if attribute quality accessing is successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
dataType
The Datatype of an attribute. The supported datatype are:
MxBoolean
MxInteger
MxFloat
MxDouble
MxString
MxTime
MxElapsedTime
MxReferenceType
MxStatusType
MxDataTypeEnum
MxQualifiedEnum
MxQualifiedStruct
quality
The out parameter contains the quality property of an
attribute.
Return Value
bool
true: if attribute quality accessing is successful.
false: if the user tries to access a non-existing attribute.
Parameters
Refer to the section GetReference Method Parameters and
Return value.
Return Value
Refer to the section GetReference Method Parameters and
Return value.
Parameters
Refer to the section GetReference Method Parameters and
Return value.
Return Value
Refer to the section GetReference Method Parameters and
Return value.
Parameters
Refer to the section GetReference Method Parameters and
Return value.
Return Value
Refer to the section GetReference Method Parameters and
Return value.
Parameters
Refer to the section GetReference Method Parameters and
Return value.
Return Value
Refer to the section GetReference Method Parameters and
Return value.
Parameters
Refer to the section GetReference Method Parameters and
Return value.
Return Value
Refer to the section GetReference Method Parameters and
Return value.
Parameters
Refer to the section GetReference Method Parameters and
Return value.
Return Value
Refer to the section GetReference Method Parameters and
Return value.
Parameters
Refer to the section GetReference Method Parameters and
Return value.
Return Value
Refer to the section GetReference Method Parameters and
Return value.
Parameters
Refer to the section GetReference Method Parameters and
Return value.
Return Value
Refer to the section GetReference Method Parameters and
Return value.
Parameters
fullName
External name of an attribute.
quality
The out parameter contains the quality property of
Reference attribute.
Return Value
bool
true: if the Reference attribute quality accessing is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The out parameter contains the quality property of
Reference attribute.
Return Value
bool
true: if the Reference attribute quality accessing is
successful.
false: if the user tries to access a non-existing attribute.
GetScanTime Method
Provides a method to access to the current scan time.
Syntax
public DateTime GetScanTime();
Return Value
DateTime
Parameter
offset
The time zone offset.
Return Value
DateTime
GetStatusDescription Method
Provides a method to get the string associated with an error
code.
Syntax
public string GetStatusDescription(
short shDetailedErrorCode
);
Parameter
shDetailedErrorCode
The error code.
Return Value
string
The string value corresponding to the error code.
Parameters
Refer to the section GetString Method Parameters and
Return value
Return Value
Refer to the section GetString Method Parameters and
Return value
Parameters
Refer to the section GetString Method Parameters and
Return value
Return Value
Refer to the section GetString Method Parameters and
Return value
Parameters
Refer to the section GetString Method Parameters and
Return value.
Return Value
Refer to the section GetString Method Parameters and
Return value.
Parameters
Refer to the section GetString Method Parameters and
Return value.
Return Value
Refer to the section GetString Method Parameters and
Return value.
Parameters
Refer to the section GetString Method Parameters and
Return value.
Return Value
Refer to the section GetString Method Parameters and
Return value.
Parameters
Refer to the section GetString Method Parameters and
Return value.
Return Value
Refer to the section GetString Method Parameters and
Return value.
Parameters
Refer to the section GetString Method Parameters and
Return value.
Return Value
Refer to the section GetString Method Parameters and
Return value.
Parameters
Refer to the section GetString Method Parameters and
Return value
Return Value
Refer to the section GetString Method Parameters and
Return value
Parameters
fullName
External name of the attribute.
quality
The out parameter contains the quality property of string
array attribute.
Return Value
bool
true: if the string array attribute quality accessing is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The out parameter contains the quality property of string
array attribute.
Return Value
bool
true: if the string array attribute quality accessing is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
Refer to the section GetTime Method Parameters and Return
value.
Parameters
Refer to the section GetTime Method Parameters and Return
value.
Parameters
fullName
External name of the attribute.
quality
The out parameter contains the quality property of the
Time array attribute.
Return Value
bool
true: if the Time array attribute quality accessing is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The out parameter contains the quality property of Time
array attribute.
Return Value
bool
true: if the Time array attribute quality accessing is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
fullName
External name of attribute.
dataType
Datatype of an attribute.
time
The out parameter contains the date and time of an
attribute.
Return Value
bool
true: if accessing the Date and Time of an attribute is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
dataType
Datatype of an attribute.
time
The out parameter contains the date and time of an
attribute.
Return Value
bool
true: if accessing the Date and Time of an attribute is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
fullName
External name of an attribute.
dataType
The out parameter contains the Datatype if an attribute.
isArray
The out parameter which specifies whether the attribute is
an array type.
1: if attribute is an array type.
0: if attribute is non-array type.
Return Value
bool
true: if the accessing of attribute type is successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
dataType
The out parameter contains the Datatype of an attribute.
isArray
The out parameter which specifies whether the attribute is
an array type.
1: if the attribute is an array type.
0: if the attribute is non-array type
Return Value
bool
true: if the accessing of attribute type is successful.
false: if the user tries to access a non-existing attribute.
Initialize Method
Provides a method to initialize the wrapper to a Primitive by
ID and IPrimitiveRuntimeSite.
Syntax
public void Initialize(
short primitiveId,
IPrimitiveRuntimeSite pSite
);
Parameters
primitiveId
Primitive ID.
pSite
Object of IPrimitiveRuntimeSite.
ParentPrimitive Method
Provides a method to get the Parent Primitive ID of a
Primitive.
Syntax
public short ParentPrimitive(short _primID);
Parameter
_primId
Primitive ID.
Return Value
short
Parameters
Refer to the section PutBoolean Method Parameters and
Return value.
Return Value
Refer to the section PutBoolean Method Parameters and
Return value.
Parameters
Refer to the section PutBoolean Method Parameters and
Return value.
Return Value
Refer to the section PutBoolean Method Parameters and
Return value.
Parameters
Refer to the section PutBoolean Method Parameters and
Return value.
Return Value
Refer to the section PutBoolean Method Parameters and
Return value.
Parameters
Refer to the section PutBoolean Method Parameters and
Return value.
Return Value
Refer to the section PutBoolean Method Parameters and
Return value.
Parameters
Refer to the section PutBoolean Method Parameters and
Return value.
Return Value
Refer to the section PutBoolean Method Parameters and
Return value.
Parameters
Refer to the section PutBoolean Method Parameters and
Return value.
Return Value
Refer to the section PutBoolean Method Parameters and
Return value.
Parameters
Refer to the section PutBoolean Method Parameters and
Return value.
Return Value
Refer to the section PutBoolean Method Parameters and
Return value.
Parameters
Refer to the section PutBoolean Method Parameters and
Return value.
Return Value
Refer to the section PutBoolean Method Parameters and
Return value.
Parameters
fullName
External name of the attribute.
quality
The quality property for Boolean array attribute. The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if the Boolean array element quality setting is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The quality property for Boolean array element. The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if the Boolean array element quality setting is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
Refer to the section PutCustomEnum Method Parameters
and Return value
Return Value
Refer to the section PutCustomEnum Method Parameters
and Return value
Parameters
Refer to the section PutCustomEnum Method Parameters
and Return value
Return Value
Refer to the section PutCustomEnum Method Parameters
and Return value
Parameters
Refer to the section PutCustomEnum Method Parameters
and Return value
Return Value
Refer to the section PutCustomEnum Method Parameters
and Return value
Parameters
Refer to the section PutCustomEnum Method Parameters
and Return value
Return Value
Refer to the section PutCustomEnum Method Parameters
and Return value
Parameters
Refer to the section PutCustomEnum Method Parameters
and Return value
Return Value
Refer to the section PutCustomEnum Method Parameters
and Return value
Parameters
Refer to the section PutCustomEnum Method Parameters
and Return value
Return Value
Refer to the section PutCustomEnum Method Parameters
and Return value
Parameters
Refer to the section PutCustomEnum Method Parameters
and Return value
Return Value
Refer to the section PutCustomEnum Method Parameters
and Return value
Parameters
Refer to the section PutCustomEnum Method Parameters
and Return value.
Return Value
Refer to the section PutCustomEnum Method Parameters
and Return value.
Parameters
fullName
External name of the attribute.
quality
The quality property for CustomEnum array element . The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
true: if the CustomEnum array element quality setting is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The quality property for CustomEnum array element . The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if the CustomEnum array element quality setting is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
Refer to the section PutCustomStruct Method Parameters
and Return value
Return Value
Refer to the section PutCustomStruct Method Parameters
and Return value
Parameters
Refer to the section PutCustomStruct Method Parameters
and Return value
Return Value
Refer to the section PutCustomStruct Method Parameters
and Return value
Parameters
Refer to the section PutCustomStruct Method Parameters
and Return value
Return Value
Refer to the section PutCustomStruct Method Parameters
and Return value
Parameters
Refer to the section PutCustomStruct Method Parameters
and Return value
Return Value
Refer to the section PutCustomStruct Method Parameters
and Return value
Parameters
Refer to the section PutCustomStruct Method Parameters
and Return value
Return Value
Refer to the section PutCustomStruct Method Parameters
and Return value
Parameters
Refer to the section PutCustomStruct Method Parameters
and Return value
Return Value
Refer to the section PutCustomStruct Method Parameters
and Return value
Parameters
Refer to the section PutCustomStruct Method Parameters
and Return value
Return Value
Refer to the section PutCustomStruct Method Parameters
and Return value
Parameters
Refer to the section PutCustomStruct Method Parameters
and Return value.
Return Value
Refer to the section PutCustomStruct Method Parameters
and Return value.
Return Value
bool
true: if the CustomStruct attribute setting is successful.
false: if the user tries to access a non-existing attribute.
Parameters
fullName
External name of the attribute.
quality
The quality property for CustomStruct array element. The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if the CustomStruct array element quality setting is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The quality property for CustomStruct attribute. The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if the CustomStruct array element quality setting is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
Refer to the section PutDouble Method Parameters and
Return value
Return Value
Refer to the section PutDouble Method Parameters and
Return value
Parameters
Refer to the section PutDouble Method Parameters and
Return value
Return Value
Refer to the section PutDouble Method Parameters and
Return value
Parameters
Refer to the section PutDouble Method Parameters and
Return value
Return Value
Refer to the section PutDouble Method Parameters and
Return value
Parameters
Refer to the section PutDouble Method Parameters and
Return value
Return Value
Refer to the section PutDouble Method Parameters and
Return value
Parameters
Refer to the section PutDouble Method Parameters and
Return value
Return Value
Refer to the section PutDouble Method Parameters and
Return value
Parameters
Refer to the section PutDouble Method Parameters and
Return value
Return Value
Refer to the section PutDouble Method Parameters and
Return value
Parameters
Refer to the section PutDouble Method Parameters and
Return value
Return Value
Refer to the section PutDouble Method Parameters and
Return value
Parameters
Refer to the section PutDouble Method Parameters and
Return value.
Return Value
Refer to the section PutDouble Method Parameters and
Return value.
Return Value
bool
true: if the Double attribute setting is successful.
false: if the user tries to access a non-existing attribute.
Parameters
fullName
External name of the attribute.
quality
The quality property for double attribute. The supported
quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if the double array element quality setting is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The quality property for double array element. The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if the double array element quality setting is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
Refer to the section PutElapsedTime Method Parameters
and Return value
Return Value
Refer to the section PutElapsedTime Method Parameters
and Return value
Parameters
Refer to the section PutElapsedTime Method Parameters
and Return value
Return Value
Refer to the section PutElapsedTime Method Parameters
and Return value
Parameters
Refer to the section PutElapsedTime Method Parameters
and Return value
Return Value
Refer to the section PutElapsedTime Method Parameters
and Return value
Parameters
Refer to the section PutElapsedTime Method Parameters
and Return value
Return Value
Refer to the section PutElapsedTime Method Parameters
and Return value
Parameters
Refer to the section PutElapsedTime Method Parameters
and Return value
Return Value
Refer to the section PutElapsedTime Method Parameters
and Return value
Parameters
Refer to the section PutElapsedTime Method Parameters
and Return value
Return Value
Refer to the section PutElapsedTime Method Parameters
and Return value
Parameters
Refer to the section PutElapsedTime Method Parameters
and Return value
Return Value
Refer to the section PutElapsedTime Method Parameters
and Return value
Parameters
Refer to the section PutElapsedTime Method Parameters
and Return value.
Return Value
Refer to the section PutElapsedTime Method Parameters
and Return value.
Parameters
fullName
External name of the attribute.
quality
The quality property for ElapsedTime array element. The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if the ElapsedTime array element quality setting is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The quality property for ElapsedTime array element. The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if the ElapsedTime array element quality setting is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
Refer to the section PutFloat Method Parameters and Return
value
Return Value
Refer to the section PutFloat Method Parameters and Return
value
Parameters
Refer to the section PutFloat Method Parameters and Return
value
Return Value
Refer to the section PutFloat Method Parameters and Return
value
Parameters
Refer to the section PutFloat Method Parameters and Return
value
Return Value
Refer to the section PutFloat Method Parameters and Return
value
Parameters
Refer to the section PutFloat Method Parameters and Return
value
Return Value
Refer to the section PutFloat Method Parameters and Return
value
Parameters
Refer to the section PutFloat Method Parameters and Return
value
Return Value
Refer to the section PutFloat Method Parameters and Return
value
Parameters
Refer to the section PutFloat Method Parameters and Return
value
Return Value
Refer to the section PutFloat Method Parameters and Return
value
Parameters
Refer to the section PutFloat Method Parameters and Return
value
Return Value
Refer to the section PutFloat Method Parameters and Return
value
Parameters
Refer to the section PutFloat Method Parameters and Return
value.
Return Value
Refer to the section PutFloat Method Parameters and Return
value.
Parameters
fullName
External name of the attribute.
quality
The quality property for Float array element. The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if the Float array element quality setting is successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The quality property for Float array element. The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if the Float array element quality setting is successful.
false: if the user tries to access a non-existing attribute.
Parameters
Refer to the section PutInteger Method Parameters and
Return value
Return Value
Refer to the section PutInteger Method Parameters and
Return value
Parameters
Refer to the section PutInteger Method Parameters and
Return value
Return Value
Refer to the section PutInteger Method Parameters and
Return value
Parameters
Refer to the section PutInteger Method Parameters and
Return value
Return Value
Refer to the section PutInteger Method Parameters and
Return value
Parameters
Refer to the section PutInteger Method Parameters and
Return value
Return Value
Refer to the section PutInteger Method Parameters and
Return value
Parameters
Refer to the section PutInteger Method Parameters and
Return value
Return Value
Refer to the section PutInteger Method Parameters and
Return value
Parameters
Refer to the section PutInteger Method Parameters and
Return value
Return Value
Refer to the section PutInteger Method Parameters and
Return value
Parameters
Refer to the section PutInteger Method Parameters and
Return value.
Return Value
Refer to the section PutInteger Method Parameters and
Return value.
Parameters
fullName
External name of the attribute.
quality
The quality property for an Integer array attribute. The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if the Integer array attribute quality setting is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The quality property for an Integer array attribute. The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if the Integer array attribute quality setting is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
Refer to the section PutMxDataType Method Parameters and
Return value.
Return Value
Refer to the section PutMxDataType Method Parameters and
Return value
Parameters
Refer to the section PutMxDataType Method Parameters and
Return value.
Return Value
Refer to the section PutMxDataType Method Parameters and
Return value.
Parameters
Refer to the section PutMxDataType Method Parameters and
Return value.
Return Value
Refer to the section PutMxDataType Method Parameters and
Return value.
Parameters
Refer to the section PutMxDataType Method Parameters and
Return value.
Return Value
Refer to the section PutMxDataType Method Parameters and
Return value.
Parameters
Refer to the section PutMxDataType Method Parameters and
Return value.
Return Value
Refer to the section PutMxDataType Method Parameters and
Return value.
Parameters
Refer to the section PutMxDataType Method Parameters and
Return value.
Return Value
Refer to the section PutMxDataType Method Parameters and
Return value.
Parameters
Refer to the section PutMxDataType Method Parameters and
Return value.
Return Value
Refer to the section PutMxDataType Method Parameters and
Return value.
Parameters
Refer to the section PutMxDataType Method Parameters and
Return value.
Return Value
Refer to the section PutMxDataType Method Parameters and
Return value.
quality
The quality property for MxDataType attribute. The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
time
The Date and Time for MxDataType attribute.
Return Value
bool
true: if the MxDataType attribute setting is successful.
false: if the user tries to access a non-existing attribute.
Parameters
fullName
External name of the attribute.
quality
The quality property for MxDataType array attribute. The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if the MxDataType array attribute quality setting is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The quality property for MxDataType array attribute. The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if the MxDataType array attribute quality setting is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
Refer to the section PutMxStatus Method Parameters and
Return value
Return Value
Refer to the section PutMxStatus Method Parameters and
Return value
Parameters
Refer to the section PutMxStatus Method Parameters and
Return value.
Return Value
Refer to the section PutMxStatus Method Parameters and
Return value.
Parameters
Refer to the section PutMxStatus Method Parameters and
Return value.
Return Value
Refer to the section PutMxStatus Method Parameters and
Return value
Parameters
Refer to the section PutMxStatus Method Parameters and
Return value.
Return Value
Refer to the section PutMxStatus Method Parameters and
Return value.
Parameters
Refer to the section PutMxStatus Method Parameters and
Return value.
Return Value
Refer to the section PutMxStatus Method Parameters and
Return value.
Parameters
Refer to the section PutMxStatus Method Parameters and
Return value.
Return Value
Refer to the section PutMxStatus Method Parameters and
Return value.
Parameters
Refer to the section PutMxStatus Method Parameters and
Return value.
Return Value
Refer to the section PutMxStatus Method Parameters and
Return value.
Parameters
Refer to the section PutMxStatus Method Parameters and
Return value.
Return Value
Refer to the section PutMxStatus Method Parameters and
Return value.
Parameters
fullName
External name of attribute.
quality
The quality property for MxStatus array attribute. The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if MxStatus array attribute quality setting is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The quality property for MxStatus array attribute. The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if MxStatus array attribute quality setting is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
Refer to the section PutQuality Method Parameters and
Return value.
Return Value
Refer to the section PutQuality Method Parameters and
Return value.
Parameters
Refer to the section PutQuality Method Parameters and
Return value.
Return Value
Refer to the section PutQuality Method Parameters and
Return value.
Parameters
Refer to the section PutReference Method Parameters and
Return value.
Return Value
Refer to the section PutReference Method Parameters and
Return value.
Parameters
Refer to the section PutReference Method Parameters and
Return value.
Return Value
Refer to the section PutReference Method Parameters and
Return value.
Parameters
Refer to the section PutReference Method Parameters and
Return value
Return Value
Refer to the section PutReference Method Parameters and
Return value
Parameters
Refer to the section PutReference Method Parameters and
Return value.
Return Value
Refer to the section PutReference Method Parameters and
Return value.
Parameters
Refer to the section PutReference Method Parameters and
Return value.
Return Value
Refer to the section PutReference Method Parameters and
Return value.
Parameters
Refer to the section PutReference Method Parameters and
Return value.
Return Value
Refer to the section PutReference Method Parameters and
Return value.
Parameters
Refer to the section PutReference Method Parameters and
Return value.
Return Value
Refer to the section PutReference Method Parameters and
Return value.
Parameters
fullName
External name of attribute.
quality
The quality property for Reference array attribute. The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if Reference array attribute quality setting is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The quality property for Reference array attribute. The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if Reference array attribute quality setting is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
Refer to the section PutString Method Parameters and
Return value.
Return Value
Refer to the section PutString Method Parameters and
Return value.
Parameters
Refer to the section PutString Method Parameters and
Return value.
Return Value
Refer to the section PutString Method Parameters and
Return value.
Parameters
Refer to the section PutString Method Parameters and
Return value.
Return Value
Refer to the section PutString Method Parameters and
Return value.
Parameters
Refer to the section PutString Method Parameters and
Return value.
Return Value
Refer to the section PutString Method Parameters and
Return value.
Parameters
Refer to the section PutString Method Parameters and
Return value.
Return Value
Refer to the section PutString Method Parameters and
Return value.
Parameters
Refer to the section PutString Method Parameters and
Return value.
Return Value
Refer to the section PutString Method Parameters and
Return value.
Parameters
Refer to the section PutString Method Parameters and
Return value.
Return Value
Refer to the section PutString Method Parameters and
Return value.
Parameters
Refer to the section PutString Method Parameters and
Return value.
Return Value
Refer to the section PutString Method Parameters and
Return value.
Parameters
fullName
External name of attribute.
quality
The quality property for string array attribute. The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if the string array attribute quality setting is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The quality property for string array attribute. The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if the string array attribute quality setting is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
Refer to the section PutTime Method Parameters and Return
value.
Return Value
Refer to the section PutTime Method Parameters and Return
value.
Parameters
Refer to the section PutTime Method Parameters and Return
value.
Return Value
Refer to the section PutTime Method Parameters and Return
value.
Parameters
Refer to the section PutTime Method Parameters and Return
value.
Return Value
Refer to the section PutTime Method Parameters and Return
value.
Parameters
Refer to the section PutTime Method Parameters and Return
value.
Return Value
Refer to the section PutTime Method Parameters and Return
value.
Parameters
Refer to the section PutTime Method Parameters and Return
value
Return Value
Refer to the section PutTime Method Parameters and Return
value
Parameters
Refer to the section PutTime Method Parameters and Return
value
Return Value
Refer to the section PutTime Method Parameters and Return
value
Parameters
Refer to the section PutTime Method Parameters and Return
value
Return Value
Refer to the section PutTime Method Parameters and Return
value
Parameters
Refer to the section PutTime Method Parameters and Return
value.
Return Value
Refer to the section PutTime Method Parameters and Return
value.
quality
The quality property for Time attribute. The supported
quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
time
The Date and Time for a Time attribute.
Return Value
bool
true: if the Time attribute setting is successful.
false: if the user tries to access a non-existing attribute.
Parameters
fullName
External name of attribute.
quality
The quality property for Time array attribute. The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if the Time array attribute quality setting is successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
quality
The quality property for Time array attribute. The
supported quality types are:
DataQualityBad
DataQualityGood
DataQualityInitializing
DataQualityUncertain
DataQualityUnknown
Return Value
bool
true: if the Time array attribute quality setting is successful.
false: if the user tries to access a non-existing attribute.
Parameters
Refer to the section PutTimeStamp Method Parameters and
Return value
Return Value
Refer to the section PutTimeStamp Method Parameters and
Return value
Parameters
Refer to the section PutTimeStamp Method Parameters and
Return value.
Return Value
Refer to the section PutTimeStamp Method Parameters and
Return value.
RecreateDynamicAttributes Method
Provides a method to recreate dynamic attributes supported
by failover.
Syntax
public void RecreateDynamicAttributes();
RestoreDynamicAttributes Method
Provides a method to recreate dynamic attributes supported
by failover and set their value if the object is starting up from
standby. Use this method to restore the dynamic attribute’s
values if the startup context is Checkpoint or Failover.
Syntax
public void RestoreDynamicAttributes();
SendEvent Method
Provides a method to cause an Attributes Set Handler to
execute using the Attributes External Name (report a data
change).
Syntax
public bool SendEvent(
string name,
string oldValue,
string newValue,
string description
);
Parameters
name
External name of an attribute.
oldValue
Old value of an attribute.
newValue
New value of an attribute.
description
The custom string specifies the description of change.
Return Value
bool
SetDataToFailoverField Method
Provides a method to set a C# object to the failover attribute.
Syntax
public void SetDataToFailoverField(object data);
Parameter
data
The data object.
SetHandler Method
Provides a method to perform custom execution logic based
upon a change of data for a particular attribute.
Syntax
public void SetHandler(
ref AttributeHandle pAttributeHandle,
ref SetInfo pInfo,
IMxValue pMxValue,
ref MxStatus pMxStatus
);
Parameters
pAttributeHandle
Specifies which property of which attribute is attempting to
be set.
pInfo
Specifies additional information regarding this set
attribute.
pMxValue
Specifies the value of the property to be set.
pMxStatus
Specifies the return status of the set.
Parameters
fullName
Name of an array attribute.
numElements
The number of elements of an array attribute.
Return Value
bool
true: if the array attribute number of elements setting is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
attributeId
Attribute ID.
primitiveId
Primitive ID of an attribute.
numElements
The number of elements of an array attribute.
Return Value
bool
true: if the array attribute number of elements setting is
successful.
false: if the user tries to access a non-existing attribute.
Parameters
Refer to the section SetQ Method Parameters and Return
value
Parameters
Refer to the section SetQ Method Parameters and Return
value.
SetScanState Method
Provides a wrapper to fire the SetScanState event.
Syntax
public void SetScanState(bool bOnScan);
Parameter
bOnScan
true: OnScan state.
false: OffScan state.
StandbyStartup Method
Provide indication if object is starting up from standby.
Syntax
public bool StandbyStartup();
Return Value
bool
Parameter
attributeName
External name of an attribute.
Return Value
bool
Parameters
attributeId
Attribute ID.
attributeName
External name of an attribute.
Return Value
bool
Parameter
fullAttributeName
The name of the primitive attribute. The name
fullAttributeName format should be
"PrimitiveName.AttributeName".
Return Value
bool
Parameters
attributeId
The primitive's attribute ID.
primitiveId
Primitive ID.
Return Value
bool
UpdateDynamicAttributeData Method
Provides a method to update each dynamic attribute
registered for failover with its current name, type, category,
security, and set handler flag.
Syntax
public void UpdateDynamicAttributeData();
InputOutputPrimitive Class
This class provides a wrapper for the InputOutput Primitive.
Syntax
public class InputOutputPrimitive :
RuntimeBase.PrimitiveWrapper
Remarks
The InputOutputPrimitive is derived from
RuntimeBase.PrimitiveWrapper and it contains the
properties, attributes, and methods associated with the
InputOutput Primitives.
InputOutputPrimitive Properties
The following are the properties of the InputOutputPrimitive
class.
• DataType Property
• ReadQuality Property
• ReadStatus Property
• ReadTime Property
• ReadValue Property
• Reference Property
• ReferenceSecondary Property
• WriteStatus Property
• WriteTime Property
• WriteValue Property
DataType Property
Provides access to the DataType attribute.
Syntax
public MxDataType DataType {get;}
Return Value
MxDataType
ReadQuality Property
Provides access to the Quality of the Read Value attribute.
Syntax
public CMxDataQuality ReadQuality {get;}
Return Value
CMxDataQuality
ReadStatus Property
Provides access to the Read Status attribute.
Syntax
public MxStatus ReadStatus {get;}
Return Value
MxStatus
ReadTime Property
Provides access to the Time of the Read Value attribute.
Syntax
public DateTime ReadTime{get;}
Return Value
DateTime
ReadValue Property
Provides access to the Value of the Read Value attribute.
Syntax
public CMxValue ReadValue{get;}
Return Value
CMxValue
Reference Property
Provides access to set/get the Reference as a reference string.
Identifies the target attribute to which the value is to be
written.
Syntax
public string Reference{get; set;}
Return Value
string
ReferenceSecondary Property
Provides access to set/get the Secondary Reference as a
reference string. ReferenceSecondary identifies the source
attribute from which the value and quality are to be read.
Syntax
public string ReferenceSecondary{get; set;}
Return Value
string
WriteStatus Property
Provides access to the Write Status attribute.
Syntax
public MxStatus WriteStatus{get;}
Return Value
MxStatus
WriteTime Property
Provides access to get/set the Time of the Write Value
attribute.
Syntax
public DateTime WriteTime{get; set;}
Return Value
DateTime
WriteValue Property
Provides access to get/set the Value of the Write Value
attribute.
Syntax
public CMxValue WriteValue{get; set;}
Return Value
CMxValue
InputOutputPrimitive Constructor
The following is the constructor of the InputOutputPrimitive
class.
• InputOutputPrimitive Constructor
InputOutputPrimitive Constructor
Syntax
public InputOutputPrimitive(RuntimeBase
_parentPrimitive);
Parameter
_parentPrimitive
Instance of RuntimeBase.
InputOutputPrimitive Methods
The following are the methods of the InputOutputPrimitive
class.
• ActivateUpdatesList Method
• SuspendUpdatesList Method
ActivateUpdatesList Method
Provides a method to activate updates of data from the
remote attributes that are referenced by the
InputOutputPrimitive. It activates the attribute configured
in the secondary reference.
Syntax
public void ActivateUpdatesList();
SuspendUpdatesList Method
Provides a method to suspend updates of data from the
remote attributes that are referenced by the
InputOutputPrimitive. It deactivates the attribute
configured in the secondary reference.
Syntax
public void SuspendUpdatesList();
InputPrimitive Class
This class provides a wrapper for Input Primitive.
Syntax
public class InputPrimitive :
RuntimeBase.PrimitiveWrapper
Remarks
The InputPrimitive is derived from
RuntimeBase.PrimitiveWrapper and it contains the
properties, attributes, and methods associated with the
InputPrimitives.
InputPrimitive Properties
The following are the properties of the InputPrimitive class.
• DataType Property
• InputSource Property
• Quality Property
• ReadStatus Property
• Time Property
• Value Property
DataType Property
Provides access to the DataType.
Syntax
public MxDataType DataType{get;}
Return Value
MxDataType
InputSource Property
Provides access to set/get the Input Source as a reference
string.
Syntax
public string InputSource{get; set;}
Return Value
string
Quality Property
Provides access to the Quality of the Value attribute.
Syntax
public CMxDataQuality Quality{get;}
Return Value
CMxDataQuality
ReadStatus Property
Provides access to the ReadStatus attribute.
Syntax
public MxStatus ReadStatus{get;}
Return Value
MxStatus
Time Property
Provides access to the Time of the Value attribute.
Syntax
public DateTime Time{get;}
Return Value
DateTime
Value Property
Provides access to the Value of the Value attribute.
Syntax
public CMxValue Value{get;}
Return Value
CMxValue
InputPrimitive Constructor
The following is the constructor of the InputPrimitive class.
• InputPrimitive Constructor
InputPrimitive Constructor
Syntax
public InputPrimitive(RuntimeBase _parentPrimitive);
Parameter
_parentPrimitive
Instance of RuntimeBase.
InputPrimitive Methods
The following are the methods of the InputPrimitive class.
• ActivateUpdatesList Method
• SuspendUpdatesList Method
ActivateUpdatesList Method
Provides a method to activate updates of data from the
remote attribute that is referenced by the InputPrimitive.
Syntax
public void ActivateUpdatesList( );
SuspendUpdatesList Method
Provides a method to suspend updates of data from the
remote attribute that is referenced by the InputPrimitive.
Syntax
public void SuspendUpdatesList( );
OutputPrimitive Class
This class provides a wrapper for Output Primitive.
Syntax
public class OutputPrimitive :
RuntimeBase.PrimitiveWrapper
Remarks
The OutputPrimitive is derived from
RuntimeBase.PrimitiveWrapper and it contains the
properties, attributes, and methods associated with the
OutputPrimitives.
OutputPrimitive Properties
The following are the properties of the OutputPrimitive
class.
• DataType Property
• OutputDest Property
• Time Property
• Value Property
• WriteStatus Property
DataType Property
Provides access to the DataType attribute.
Syntax
public MxDataType DataType { get; }
Return Value
MxDataType
OutputDest Property
Provides access to set/get the Output Destination as a
reference string.
Syntax
public string OutputDest { get; set; }
Return Value
string
Time Property
Provides access to get/set the Time of the Value attribute.
Syntax
public DateTime Time { get; set; }
Return Value
DateTime
Value Property
Provides access get/set the value of the Value attribute.
Syntax
public CMxValue Value { get; set; }
Return Value
CMxValue
WriteStatus Property
Provides access to the WriteStatus attribute.
Syntax
public MxStatus WriteStatus { get; }
Return Value
MxStatus
OutputPrimitive Constructor
The following is the constructor of the OutputPrimitive class.
• OutputPrimitive Constructor
OutputPrimitive Constructor
Syntax
public OutputPrimitive(RuntimeBase _parentPrimitive);
Parameter
_parentPrimitive
Instance of RuntimeBase.
OutputPrimitive Methods
The following are the methods of the OutputPrimitive class.
• Initialize Method (short)
PrimitiveWrapper Class
This class is the base class of all IO Wrappers.
Syntax
public class PrimitiveWrapper
PrimitiveWrapper Property
Following is the property of the PrimitiveWrapper class.
• IsGood Property
IsGood Property
Provides indication that the wrapper has been initialized
successfully.
Syntax
public bool IsGood { get; }
Return Value
bool
PrimitiveWrapper Constructor
Following is the constructor of the PrimitiveWrapper class.
• PrimitiveWrapper Constructor
PrimitiveWrapper Constructor
Syntax
public PrimitiveWrapper(RuntimeBase _parentPrimitive);
Parameter
_parentPrimitive
Instance of RuntimeBase.
PrimitiveWrapper Methods
Following are the methods of the PrimitiveWrapper class.
• Initialize Method (short)
aaBaseEditorForm Class
aaBaseEditorForm is an User Control and it is the base class
of the object Editor project.
aaBaseEditorForm provides functionality like adding custom
tabs to the object editor, Attribute data access, Dictionary
access, and ArchestrA logger access.
Syntax
public class aaBaseEditorForm : UserControl,
IaaEditorForm, IaaEditorFormInternal, IaaControl
aaBaseEditorForm Methods
The following are the methods of the aaBaseEditorForm
class.
• GetData Method (string)
Parameters
sAttribute
Attribute external name.
sProperty
Property type:
"Value" in case of Value property.
"Lock" in case of Lock property.
"SecurityClassification" in case of SecurityClassification
property.
sVal
Value to set.
Event Arguments
This section describes the Event Handlers for the Configtime
and RuntimeBase class.
SetHandlerEventArgs Class
SetHandlerEventArgs is an inherited class that provides
properties that are common to all SetHandlers.
Syntax
public class SetHandlerEventArgs : EventArgs
SetHandlerEventArgs Property
The following is the property of the SetHandlerEventArgs
class.
• IsArrayElement Property
IsArrayElement Property
This property returns true if the attribute is an array.
Otherwise, returns false if the attribute is a non-array.
Syntax
public bool IsArrayElement { get; }
Return Value
bool
SetHandlerEventArgs Constructor
The following is the constructor of the SetHandlerEventArgs
class.
• SetHandlerEventArgs Constructor AttributeHandle, IMxValue
SetHandlerEventArgs Members
The following are the members of the SetHandlerEventArgs
class.
• attributeHandle Member
• Value Member
attributeHandle Member
The attribute handle of the attribute being set.
Syntax
AttributeHandle attributeHandle
Value Member
The value being set.
Syntax
CMxValue Value
ConfigtimeSetHandlerEventArgs Class
ConfigtimeSetHandlerEventArgs is a class that provides
configtime set handlers with the information they need when
called.
Syntax
public class ConfigtimeSetHandlerEventArgs :
SetHandlerEventArgs
ConfigtimeSetHandlerEventArgs Constructor
The following is the constructor of the
ConfigtimeSetHandlerEventArgs class.
• ConfigtimeSetHandlerEventArgs Constructor AttributeHandle,
IMxValue
ConfigtimeSetHandlerEventArgs Constructor
AttributeHandle, IMxValue
This constructor is used internally by the Toolkit. The object
developer is not expected to typically use this constructor.
Syntax
ConfigtimeSetHandlerEventArgs(AttributeHandle
_attribute, IMxValue _value)
Parameters
_ attribute
[in] The attribute handle of the attribute being set.
_value
[in] The value being set.
ConfigtimeSetHandlerEventArgs Member
The following is the member of the
ConfigtimeSetHandlerEventArgs class.
• Message Member
Message Member
A string that the user can set to write a message back to the
set handler caller when an error or warning is needed. The
message must be empty for the set handler to be successful.
Syntax
string Message
MigrateHandler Class
The migrate handler contains the information on the current
migrate event.
Syntax
public class MigrateHandler
MigrateHandler Properties
The following are the properties of the MigrateHandler class.
• OriginalPrimitiveFullName Property
• OriginalPrimitiveId Property
• PreviousSite Property
OriginalPrimitiveFullName Property
Provides a property that Gets the full name of the current
primitive being migrated from. When Get is called on a
primitive, the full name must be prepended with a period to
fully reference the attribute.
Syntax
public string OriginalPrimitiveFullName { get; }
Return Value
string
Remarks
When migrating attributes within a reusable primitive, the
code in the configtime_migrate method must use the full
primitive name to access the attribute in the original object
being migrated. The property OriginalPrimitiveFullName
within the MigrateHandler class is available for this purpose
so that it can be prepended in front of the attribute name.
For example, in the Reusable Primitive configtime_migrate
method use:
migrate.GetValue(migrate.OriginalPrimitiveFullName +
".Attribute1")
OriginalPrimitiveId Property
The primitive id of the primitive that is being migrated.
Syntax
public short OriginalPrimitiveId { get; }
Return Value
short
PreviousSite Property
A handle to the configtime site of the object that is being
migrated.
Syntax
public IPrimitivePackageSite PreviousSite { get; }
Return Value
IPrimitivePackageSite
MigrateHandler Constructor
The following are the constructor of the MigrateHandler
class.
• MigrateHandler Constructor IPrimitivePackageSite, short
MigrateHandler Methods
The following are the methods of the MigrateHandler class.
• Get Method
• GetLocked Method
• GetSecurity Method
• GetValue Method
• MajorVersion Method
Get Method
Gets the value of an attribute property in the previous
version of the object.
Syntax
public CMxValue Get(string attribute,
EATTRIBUTEPROPERTY property);
Parameters
attribute
[in] the name of the attribute (must include the full name of
the primitive if it is not the topmost primitive.)
property
[in] the property being accesses.
Return Value
CMxValue
GetLocked Method
Gets the lock status of an attribute in the previous version of
the object.
Syntax
public bool GetLocked(string attribute);
Parameter
attribute
[in] the name of the attribute (must include the full name of
the primitive if it is not the topmost primitive.)
Return Value
bool
GetSecurity Method
Gets the security of an attribute in the previous version of
the object.
Syntax
public MxSecurityClassification GetSecurity(string
attribute);
Parameter
attribute
[in] the name of the attribute (must include the full name of
the primitive if it is not the topmost primitive.)
Return Value
MxSecurityClassification
GetValue Method
Gets the value of an attribute in the previous version of the
object.
Syntax
public CMxValue GetValue(string attribute);
Parameter
attribute
[in] the name of the attribute ( must include the full name
of the primitive if it is not the topmost primitive.)
Return Value
CMxValue
MajorVersion Method
The major version of the primitive that is being migrated.
Syntax
public short MajorVersion();
Return Value
short
MigrateHandler Member
The following is the member of the MigrateHandler class.
• AutoMigrateChildPrimitives Member
AutoMigrateChildPrimitives Member
You can set this flag true if you want child primitives to auto
migrate.
Syntax
bool AutoMigrateChildPrimitives
RuntimeSetHandlerEventArgs Class
RuntimeSetHandlerEventArgs is a class that provides
runtime set handlers with the information they need when
called.
Syntax
public class RuntimeRuntimeSetHandlerEventArgs :
RuntimeSetHandlerEventArgs
RuntimeSetHandlerEventArgs Constructor
The following is the constructor of the
RuntimeSetHandlerEventArgs class.
• RuntimeSetHandlerEventArgs Constructor AttributeHandle,
SetInfo, MxStatus, IMxValue, DateTime, DataQuality
RuntimeSetHandlerEventArgs Members
The following are the members of the
RuntimeSetHandlerEventArgs class.
• attributeInfo Member
• status member
• Time member
• Quality member
attributeInfo Member
The SetInfo of the current set.
Syntax
SetInfo attributeInfo
status member
A status to report the status of the set handler back to the
caller.
Syntax
MxStatus status
Time member
The timestamp of the value being set.
Syntax
DateTime Time
Quality member
The data quality of the value being set.
Syntax
CMxDataQuality Quality
RuntimeGetStatusDescEventArgs Class
This class is the argument to the GetStatusDescription
event.
Syntax
public class RuntimeGetStatusDescEventArgs : EventArgs
RuntimeGetStatusDescEventArgs Constructor
The following is the constructor of the
RuntimeGetStatusDescEventArgs class.
• RuntimeGetStatusDescEventArgs Constructor
RuntimeGetStatusDescEventArgs Constructor
Provides a default constructor.
Syntax
RuntimeGetStatusDescEventArgs()
RuntimeGetStatusDescEventArgs Members
The following are the members of the
RuntimeGetStatusDescEventArgs class.
• status Member
• detailedErrorCode Member
status Member
A string describing the detailed error code.
Syntax
string status
detailedErrorCode Member
The detailed error code to look up for a description.
Syntax
short detailedErrorCode
RuntimeSetScanStateEventArgs Class
This class is the argument to the set scan state event.
Syntax
public class RuntimeSetScanStateEventArgs : EventArgs
RuntimeSetScanStateEventArgs Constructor
The following is the constructor of the
RuntimeSetScanStateEventArgs class.
• RuntimeSetScanStateEventArgs Constructor
RuntimeSetScanStateEventArgs Constructor
Provides a default constructor.
Syntax
public RuntimeSetScanStateEventArgs();
RuntimeSetScanStateEventArgs Member
The following is the member of the
RuntimeSetScanEventArgs class.
• onScan Member
onScan Member
True if the object is going on scan.
Syntax
bool onScan
RuntimeStartupEventArgs Class
This class is the argument for the startup event.
Syntax
public class RuntimeStartupEventArgs : EventArgs
RuntimeStartupEventArgs Constructor
The following is the constructor of the
RuntimeStartupEventArgs class.
• RuntimeStartupEventArgs Constructor StartupInfo
RuntimeStartupEventArgs Member
The following is the member of the
RuntimeStartupEventArgs class.
• startInfo Member
startInfo Member
The startup information of this startup event.
Syntax
StartupInfo startInfo
Enumerations
This section includes Enumerations for Configtime, Runtime,
and Editor projects.
ESTARTUPCONTEXT Enumeration
Syntax
enum ESTARTUPCNTEXT
{
eStartupContextUnknown = 0,
eStartingAfterDeployment = 1,
eStartingFromCheckpoint = 2,
eStartingFromStandby,
}
Members
eStartingAfterDeployment
Indicates the object instance has just been deployed and is
starting for the first time.
eStartingFromCheckpoint
Indicates the object instance is being started after an engine
restart from checkpoint.
eStartingFromStandby
Indicates the object instance is being started after failover.
Remarks
Enumeration defining the context in which the primitive or
object of interest is being started.
StartupInfo Enumeration
Syntax
struct StartupInfo
{
public VB_LARGE_INTEGER checkpointFiletime;
public ESTARTUPCONTEXT startupContext;
}
Members
startupContext
Indicates whether object has just been deployed or restarted
from checkpoint.
checkpointFiletime
Amount of elapsed time in 100-nanosecond ticks since the
checkpoint file was last written for the hosting engine.
Indicates time since object last ran and check pointed to disk.
Remarks
Structure providing information on the startup context and
the amount of time that has elapsed since the checkpoint file
was last saved.This information can be used in the
RuntimeStartup() method in certain cases, especially when
the amount of time since the object last ran and was check
pointed to disk is required.This may be useful in certain
supervisory control algorithms that use hot startup and
warm startup concepts.
ECALLCONTEXTFLAG Enumeration
Syntax
enum ECALLCONTEXTFLAG
{
eCallingContextUnknown = 0,
eSupervisorySetAttribute = 1,
eSystemSetAttribute = 2,
eUserSetAttribute = 3,
eInternalSetAttribute = 4,
}
Remarks
Indicates the type of caller that issued the set attribute
request. The only types to be used are
eSupervisorySetAttribute, eUserSetAttribute, and
eInternalSetAttribute. SupervisorySet indicates another
object performed the set. InternalSet indicates this object
performed the set. UserSet indicates a user performed the
set.
SetInfo Enumeration
Syntax
struct SetInfo
{
public ECALLCONTEXTFLAG callContext;
public string engineName;
public int responseId;
public VBGUID userId;
public VBGUID userIdVerifier;
}
Members
UserId
For internal use only.
UserIdVerifier
For internal use only.
CallContext
Indicates type of client that issued the set request.
responseId
For internal use only.
engineName
For internal use only.
Remarks
Indicates information about an attribute set operation.
MxStatus Enumeration
Syntax
struct MxStatus
{
public MxStatusCategory Category;
public short detail;
public MxStatusSource detectedBy;
public short success;
}
Members
success
Indicates whether the operation succeeded, pending, or
failed.
Category
The MxStatusCategory of the operation indicating the
category of the status.
detectedBy
Indicates which component detected the condition.
detail
Error detail codes. 0 to 32,767. Values 0 to 9999 are reserved.
Values 10000 to 32767 can be used to define custom detailed
error codes.
Remarks
Structure containing detailed status information regarding a
Message Exchange get or set operation.
MxStatusCategory Enumeration
Syntax
enum MxStatusCategory
{
MxStatusCategoryUnknown = -1,
MxCategoryOk = 0,
MxCategoryPending = 1,
MxCategoryWarning = 2,
MxCategoryCommunicationError = 3,
MxCategoryConfigurationError = 4,
MxCategoryOperationalError = 5,
MxCategorySecurityError = 6,
MxCategorySoftwareError = 7,
MxCategoryOtherError = 8,
}
Remarks
Indicates a category of success or error for a Message
Exchange call. Used in the Set handler context for objects.
Return MxCategoryOk if the set succeeded. Objects may also
return MxCategoryWarning when the set completed with a
warning. For errors, MxCategoryOperationalError is used to
indicate an invalid operation was attempted.
MxCategoryConfigurationError is used to indicate the object
is not configured to support the set requested.
MxStatusSource Enumeration
Syntax
enum MxStatusSource
{
MxSourceUnknown = -1,
MxSourceRequestingLmx = 0,
MxSourceRespondingLmx = 1,
MxSourceRequestingNmx = 2,
MxSourceRespondingNmx = 3,
MxSourceRequestingAutomationObject = 4,
MxSourceRespondingAutomationObject = 5,
}
Remarks
Indicates the source of an error for a Message Exchange get
or set call. Lmxmeans Local Message Exchange, the
in-process component for ArchestrA data communications.
Nmx means Network Message Exchange, the network
component of ArchestrA data communications.
DataQuality Enumeration
Syntax
enum DataQuality
{
DataQualityUnknown = -1,
DataQualityGood = 0,
DataQualityUncertain = 1,
DataQualityInitializing = 2,
DataQualityBad = 3,
}
Remarks
An enumeration that represents the four primary OPC data
quality states as interpreted by ArchestrA. The
DataQualityInitializing state is actually a substatus of Bad
according to OPC. In general, use of MxDataQuality is
preferred since it contains the most complete OPC bit
definitions.
MxSecurityClassification Enumeration
Syntax
enum MxSecurityClassification
{
MxSecurityUndefined = -1,
MxSecurityFreeAccess = 0,
MxSecurityOperate = 1,
MxSecuritySecuredWrite = 2,
MxSecurityVerifiedWrite = 3,
MxSecurityTune = 4,
MxSecurityConfigure = 5,
MxSecurityViewOnly = 6,
}
Remarks
Indicates the security classification of an attribute.
MxCustomStruct Enumeration
Syntax
class MxCustomStruct
{
public byte[] Data;
public int Guid;
public MxCustomStruct();
public MxCustomStruct(int guid);
Members
Guid
Unique type identifier for the custom structure for
type-checking.
Data
An array of bytes containing the actual data.
Remarks
This datatype is used in conjunction with CMxValue to
extract a custom struct from an MxValue. This datatype is
basically the "blob" type, allowing a stream of bytes to be
stored, read, and written in an attribute.
MxDataType Enumeration
Syntax
enum MxDataType
{
MxDataTypeUnknown = -1,
MxNoData = 0,
MxBoolean = 1,
MxInteger = 2,
MxFloat = 3,
MxDouble = 4,
MxString = 5,
MxTime = 6,
MxElapsedTime = 7,
MxReferenceType = 8,
MxStatusType = 9,
MxDataTypeEnum = 10,
MxSecurityClassificationEnum = 11,
MxDataQualityType = 12,
MxQualifiedEnum = 13,
MxQualifiedStruct = 14,
MxInternationalizedString = 15,
MxBigString = 16,
MxDataTypeEND = 17,
}
Remarks
Indicates the datatype of an attribute.
EPACKAGESTATUS Enumeration
Syntax
enum EPACKAGESTATUS
{
ePackageUnknownStatus = -1,
ePackageGood = 0,
ePackageBad = 1,
ePackageWarning = 2,
}
Remarks
This enumeration indicates the status of a package
configuration. Bad packages cannot be deployed, whereas
Good and Warning packages can be deployed.
EPRIMITIVEOPSTATUS Enumeration
Syntax
enum EPRIMITIVEOPSTATUS
{
eSuccess = 0,
eUndefinedError = 1,
ePrimitiveNotFound = 2,
ePrimitiveDefinitionNotFound = 3,
eHasLockedAttributes = 4,
eNotDynamicPrimitive = 5,
eOperationCausesNameConflict = 6,
eInvalidPrimitiveName = 7,
eNotVirtualPrimitive = 8,
eCanNotFindParentPrimitive = 9,
eParentPrimitiveIsVirtual = 10,
eConflictWithExtensionPrimitive = 11,
}
Remarks
This enumeration indicates the status of a virtual primitive
operation within the package.
MxPropertyLockedEnum Enumeration
Syntax
enum MxPropertyLockedEnum
{
MxUndefinedLockedStatus = -1,
MxUnLocked = 0,
MxLockedInMe = 1,
MxLockedInParent = 2,
MxPropertyLockedEnumEND = 3,
}
Remarks
This enumeration indicates the lock status of an attribute in
a package. Attributes that are MxUnLocked and
MxLockedInMe can be modified in the package, whereas
attributes that are MxLockedInParent cannot be modified in
the package.
CMxValue Class
A wrapper class that represents an MxValue. Includes the
fundamental variant object that contains a single data value
or single array of data values of like type. MxValue is used to
get and set data within the ArchestrA framework.
Syntax
public class CMxValue
CMxValue Properties
The following are the properties of the CMxValue class.
• Length Property
• Value Property
Length Property
Provides a property to get the length of the value.
Syntax
int Length { get; }
Return Value
int
Returns 0 if the value is a non-array type.
Value Property
Provides a property to get IMxValue for compatibility with
the existing methods.
Syntax
IMxValue Value { get; }
Return Value
IMxValue
CMxValue Constructors
The following are the constructors of the CMxValue class.
• CMxValue Constructor
• CMxValue Constructor IMxValue
CMxValue Constructor
Provides a constructor to create an empty CMxValue.
Syntax
public CMxValue();
CMxValue Methods
The following are the methods of the CMxValue class.
• Clone Method
• Empty Method
• DateTimeToFileTime Method
• DateTimeToVBFT Method
• FileTimeToDateTime Method
• VBFIToDateTime Method
• TimeSpanToVBLI Method
• VBLIToTimeSpan Method
• GetBoolean Method
• GetBooleanArray Method
• GetClassID Method
• GetCustomEnum Method
• GetCustomEnumArray Method
• GetCustomEnumOrdinal Method
• GetCustomEnumString Method
• GetCustomStruct Method
• GetCustomStructArray Method
• GetCustomStructVB Method
• GetDataType Method
• GetDimensionCount Method
• GetDimensionSize Method
• GetDouble Method
• GetDoubleArray Method
• GetElapsedTime Method
• GetElapsedTimeArray Method
• GetElement Method
• GetFloat Method
• GetFloatArray Method
• GetInteger Method
• GetIntegerArray Method
• GetInternationalString Method
• GetInternationalStrings Method
• GetMxDataQuality Method
• GetMxDataType Method
• GetMxDataTypeArray Method
• GetMxReference Method
• GetMxReferenceArrayAsStrings Method
• GetMxReferenceAsString Method
• GetMxSecurityClassification Method
• GetMxSecurityClassificationArray Method
• GetMxStatus Method
• GetMxStatusArray Method
• GetSizeMax Method
• GetString Method
• GetStringArray Method
• GetTime Method
• GetTime Method
• GetTimeArray Method
• IsArray Method
• IsDirty Method
• PutBoolean Method
• PutBooleanArray Method
• PutCustomEnum Method
• PutCustomEnumArray Method
• PutCustomEnumOrdinal Method
• PutCustomStruct Method
• PutCustomStructArray Method
• PutCustomStructVBArray Method
• PutDouble Method
• PutDoubleArray Method
• PutElapsedTime Method
• PutElapsedTimeArray Method
• PutElement Method
• PutFloat Method
• PutFloatArray Method
• PutInteger Method
• PutIntegerArray Method
• PutInternationalString Method
• PutInternationalStringVB Method
• PutMxDataQuality Method
• PutMxDataQuality Method
• PutMxDataType Method
• PutMxDataTypeArray Method
• PutMxReference Method
• PutMxReferenceArrayAsStrings Method
• PutMxReferenceAsString Method
• PutMxSecurityClassification Method
• PutMxSecurityClassificationArray Method
• PutMxStatus Method
• PutMxStatusArray Method
• PutString Method
• PutStringArray Method
• PutTime Method
• PutTimeArray Method
• ToString Method
Clone Method
Provides a method to create a copy of an existing CMxValue
which includes creating a copy of the internal IMxValue
class.
Syntax
public Clone(out CMxValue ppMxValue);
Parameter
ppMxValue
[out} fills the ppMxValue with the current CMxValue.
Empty Method
Provides a method to call Empty on the IMxValue.
Syntax
public void Empty();
DateTimeToFileTime Method
Provides a method to convert a DateTime into a _FILETIME.
Converts the current System.DateTime object to a Windows
file time.
Syntax
public static _FILETIME DateTimeToFileTime(DateTime
date);
Parameter
date
[in] DateTime value.
Return Value
_FILETIME
DateTimeToVBFT Method
Provides a method to convert a DateTime into a
VBFILETIME.
Syntax
public static VBFILETIME DateTimeToVBFT(DateTime date);
Parameter
date
[in] DateTime value.
Return Value
VBFILETIME
FileTimeToDateTime Method
Provides a method to convert a _FILETIME to a DateTime.
Syntax
public static DateTime FileTimeToDateTime(_FILETIME
val);
Parameter
val
[in] __FILETIME value.
Return Value
DateTime
VBFIToDateTime Method
Provides a method to convert VBFILETIME to DateTime.
Syntax
public static DateTime VBFTToDateTime(VBFILETIME val);
Parameter
val
[in] VBFILETIME value.
Return Value
DateTime
TimeSpanToVBLI Method
Provides a method to convert a TimeSpan to
VB_LARGE_INTEGER.
Syntax
public static VB_LARGE_INTEGER TimeSpanToVBLI(TimeSpan
span);
Parameter
span
[in] TimeSpan value.
Return Value
VB_LARGE_INTEGER
VBLIToTimeSpan Method
Provides a method to convert VB_LARGE_INTEGER to
TimeSpan.
Syntax
public static TimeSpan VBLIToTimeSpan(VB_LARGE_INTEGER
val);
Parameter
val
[in] VB_LARGE_INTEGER value.
Return Value
TimeSpan
GetBoolean Method
Provides a method to get the value as a Boolean.
Syntax
public bool GetBoolean();
Return Value
bool
GetBooleanArray Method
Provides a method to get the value as a Boolean array.
Syntax
public bool[] GetBooleanArray();
Return Value
bool[ ]
GetClassID Method
Provides a method to get the Class ID of the IMxValue.
Syntax
public void GetClassID(out Guid pClassID);
Parameter
pClassID
[out] fills the pClassID with the Class ID of the IMxValue.
GetCustomEnum Method
Provides a method to get a custom enum as a text value,
ordinal, id of the primitive that owns the array of strings, id
of the array of strings.
Syntax
public void GetCustomEnum(out string pValue, out short
pOrdinal, out short pPrimitiveId, out
short pAttributeId);
Parameters
pValue
[out] fills the pValue with the current CMXCustomEnum
text.
pOrdinal
[out] fills the pOrdinal with the current CMXCustomEnum
ordinal.
pPrimitiveId
[out] fills the pPrimitiveId with the primitive ID of the
referred string array attribute.
pAttributeId
[out] fills the pAttributeId with the attribute ID of the
referred string array attribute.
GetCustomEnumArray Method
Provides a method to get an array of ordinals of a
CustomEnum.
Syntax
public short[] GetCustomEnumArray();
Return Value
short[ ]
GetCustomEnumOrdinal Method
Provides a method to get the ordinal of a CustomEnum.
Syntax
public short GetCustomEnumOrdinal();
Return Value
short
GetCustomEnumString Method
Provides a method to get the text value of a CustomEnum.
Syntax
public string GetCustomEnumString();
Return Value
string
GetCustomStruct Method
Provides a method to get the value as an MxCustomStruct.
Syntax
public MxCustomStruct GetCustomStruct();
Return Value
MxCustomStruct
GetCustomStructArray Method
Provides a method to get the value as an MxCustomStruct
Array.
Syntax
public MxCustomStruct[] GetCustomStructArray();
Return Value
MxCustomStruct[ ]
GetCustomStructVB Method
Provides a method to get the value as a guid and byte array.
Syntax
public void GetCustomStructVB(out int pGuid, ref byte[]
pStruct);
Parameters
pGuid
[out] fills the pGuid with the current
CMXCustomStructArray guid.
pStruct
[out] fills the pStruct with the current
CMXCustomStructArray data.
GetDataType Method
Provides a method to get the type of the data.
Syntax
public MxDataType GetDataType();
Return Value
MxDataType
GetDimensionCount Method
Provides a method to get the number of dimensions.
Syntax
public void GetDimensionCount(out short nDimensions);
Parameter
nDimensions
[out] fills the nDimensions with the dimension count of the
IMxValue.
GetDimensionSize Method
Provides a method to access the DimensionSize of IMxValue.
Syntax
public void GetDimensionSize(out int pSize);
Parameter
pSize
[out] fills the pSize with the dimension size of the
IMxValue.
GetDouble Method
Provides a method to get the value as a double.
Syntax
public double GetDouble();
Return Value
double
GetDoubleArray Method
Provides a method to get the value as a double array.
Syntax
public double[] GetDoubleArray();
Return Value
double[ ]
GetElapsedTime Method
Provides a method to get the value as a TimeSpan.
Syntax
public dTimeSpan GetElapsedTime();
Return Value
TimeSpan
GetElapsedTimeArray Method
Provides a method to get the value as a TimeSpan array.
Syntax
public TimeSpan[] GetElapsedTimeArray();
Return Value
TimeSpan[ ]
GetElement Method
Provides a method to get a single element of an array as a
CMxValue by index.
Syntax
public void GetElement(int index1, out CMxValue
pMxValue);
Parameters
index1
[in] index of the array element.
pMxValue
[out] fills the pMxValue with the array element.
GetFloat Method
Provides a method to get the value as a float.
Syntax
public float GetFloat();
Return Value
float
GetFloatArray Method
Provides a method to get the value as a float array.
Syntax
public float[] GetFloatArray();
Return Value
float[ ]
GetInteger Method
Provides a method to get the value as an int.
Syntax
public int GetInteger();
Return Value
int
GetIntegerArray Method
Provides a method to get the value as an int array.
Syntax
public int[] GetIntegerArray();
Return Value
int[ ]
GetInternationalString Method
Provides a method to get the value by locale.
Syntax
public string GetInternationalString(int locale);
Parameter
locale
[in] locale number of the language/culture.
Return Value
string
GetInternationalStrings Method
Provides a method to get the value as an array of
InternationalizedStrings.
Syntax
public InternationalizedString[]
GetInternationalStrings();
Return Value
InternationalizedString[ ]
GetMxDataQuality Method
Provides a method to get the Data Quality as a short.
Syntax
public short GetMxDataQuality();
Return Value
short
GetMxDataType Method
Provides a method to get the value as a MxDataType.
Syntax
public MxDataType GetMxDataType();
Return Value
MxDataType
GetMxDataTypeArray Method
Provides a method to get the value as a MxDataType array.
Syntax
public MxDataType[] GetMxDataTypeArray();
Return Value
MxDataType[ ]
GetMxReference Method
Provides a method to get the value as a IMxReference.
Syntax
public IMxReference GetMxReference();
Return Value
IMxReference
GetMxReferenceArrayAsStrings Method
Provides a method to get the value of a reference array as an
array of strings.
Syntax
public string[] GetMxReferenceArrayAsStrings();
Return Value
string[ ]
GetMxReferenceAsString Method
Provides a method to get the value of a reference as a string.
Syntax
public string GetMxReferenceAsString();
Return Value
string
GetMxSecurityClassification Method
Provides a method to get the value as a
MxSecurityClassification.
Syntax
public MxSecurityClassification
GetMxSecurityClassification();
Return Value
MxSecurityClassification
GetMxSecurityClassificationArray Method
Provides a method to get the value as a
MxSecurityClassification array.
Syntax
public MxSecurityClassification[]
GetMxSecurityClassificationArray();
Return Value
MxSecurityClassification[ ]
GetMxStatus Method
Provides a method to get the value as a MxStatus.
Syntax
public MxStatus GetMxStatus();
Return Value
MxStatus
GetMxStatusArray Method
Provides a method to get the value as a MxStatus array.
Syntax
public MxStatus[] GetMxStatusArray();
Return Value
MxStatus[ ]
GetSizeMax Method
Provides a method to get the max size as a
_ULARGE_INTEGER.
Syntax
public void GetSizeMax(out _ULARGE_INTEGER pcbSize);
Parameter
pcbSize
[out] fills the pcbSize with the IMxValue max size.
GetString Method
Provides a method to get the value as a string.
Syntax
public string GetString();
Return Value
string
GetStringArray Method
Provides a method to get the value as a string array.
Syntax
public string[] GetStringArray();
Return Value
string[ ]
GetTime Method
Provides a method to get the value as a DateTime.
Syntax
public DateTime GetTime();
Return Value
DateTime
GetTime Method
Provides a method to get the value as a DateTime
(compatible with IMxValue syntax.)
Syntax
public void GetTime(out DateTime pVal);
Parameter
pVal
[out] fills the DateTime parameter by converting the
Windows file time to its equivalent local time.
GetTimeArray Method
Provides a method to get the value as a DateTime array.
Syntax
public DateTime[] GetTimeArray();
Return Value
DateTime[ ]
IsArray Method
Provides a method to indicate if the value is an array.
Syntax
public bool IsArray();
Return Value
bool
IsDirty Method
Provides a method to access IMxValue IsDirty.
Syntax
public void IsDirty();
PutBoolean Method
Provides a method to set the value from a Boolean.
Syntax
public void PutBoolean(bool newVal);
Parameter
newVal
[in] bool value to be set.
PutBooleanArray Method
Provides a method to set the value from a Boolean array.
Syntax
public void PutBooleanArray(bool[] values);
Parameter
values
[in] bool[ ] value to be set.
PutCustomEnum Method
Provides a method to set the value from a text string, ordinal,
primitive ID, and atttribute ID.
Syntax
public void PutCustomEnum(string Value, short ordinal,
short primitiveId, short attributeId);
Parameters
Value
[in] Text to set to the CMxCustomEnum.
ordinal
[in] Ordinal position to be set.
primitiveId
[in] primitive id of the referenced string array attribute.
attributeId
[in] Attribute id of the referenced string array attribute
CMxValue Class.
PutCustomEnumArray Method
Provides a method to set the value from an array of shorts
indicating the ordinal.
Syntax
public void PutCustomEnumArray(short[] values);
Parameter
values
[in] Sets the CMxCustomEnumArray with the ordinal
values.
PutCustomEnumOrdinal Method
Provides a method to set the value of the ordinal.
Syntax
public void PutCustomEnumOrdinal(short ordinal);
Parameter
ordinal
[in] Sets the CMxCustomEnum ordinal value.
PutCustomStruct Method
Provides a method to set the value from a MxCustomStruct.
Syntax
public void PutCustomStruct(MxCustomStruct cs);
Parameter
cs
[in] MxCustomStruct value to be set.
PutCustomStructArray Method
Provides a method to set the value from a MxCustomStruct
array.
Syntax
public void PutCustomStructArray(MxCustomStruct[]
values);
Parameter
values
[in] MxCustomStruct[ ] value to be set.
PutCustomStructVBArray Method
Provides a method to set the value from a guid and byte
array.
Syntax
public void PutCustomStructVB(int guid, byte[]
pStruct);
Parameters
guid
[in] int value that holds guid to be set.
pStruct
[in] byte[ ] value to be set.
PutDouble Method
Provides a method to set the value from a double.
Syntax
public void PutDouble(double newVal);
Parameter
newVal
[in] double value to be set.
PutDoubleArray Method
Provides a method to set the value from a double array.
Syntax
public void PutDoubleArray(double[] values);
Parameter
values
[in] double[ ] value to be set.
PutElapsedTime Method
Provides a method to set the value from a TimeSpan.
Syntax
public void PutElapsedTime(TimeSpan ts);
Parameter
ts
[in] TimeSpan value to be set.
PutElapsedTimeArray Method
Provides a method to set the value from a TimeSpan array.
Syntax
public void PutElapsedTimeArray(TimeSpan[] values);
Parameter
values
[in] TimeSpan[ ] value to be set.
PutElement Method
Provides a method to set the value of an element from a
CMxValue by index.
Syntax
public void PutElement(int index, CMxValue pMxValue);
Parameters
index
[in] index value.
pMxValue
[in] value to be set at the specified index.
PutFloat Method
Provides a method to set the value from a float.
Syntax
public void PutFloat(float newVal);
Parameter
newVal
[in] float value to be set.
PutFloatArray Method
Provides a method to set the value from a float array.
Syntax
public void PutFloatArray(float[] values);
Parameter
values
[in] float[ ] value to be set.
PutInteger Method
Provides a method to set the value from an int.
Syntax
public void PutInteger(int newVal);
Parameter
newVal
[in] integer value to be set.
PutIntegerArray Method
Provides a method to set the value from an int array.
Syntax
public void PutIntegerArray(int[] values);
Parameter
values
[in] integer[ ] value to be set.
PutInternationalString Method
Provides a method to set the value of a specified locale from a
string.
Syntax
public void PutInternationalString(int locale, string
InternationalizedString);
Parameters
locale
[in] integer value to be set.
InternationalizedString
[in] string value to be set.
PutInternationalStringVB Method
Provides a method to set the value from an
InternationalizedString array.
Syntax
public void
PutInternationalStringsVB(InternationalizedString[]
ppsa);
Parameter
ppsa
[in] InternationalizedString[ ] value to be set.
PutMxDataQuality Method
Provides a method to set the value from an OpcQuality.
Syntax
public void PutMxDataQuality(OpcQuality newVal);
Parameter
newVal
[in] OpcQuality value to be set.
PutMxDataQuality Method
Provides a method to set the value from a short quality.
Syntax
public void PutMxDataQuality(short newVal);
Parameter
newVal
[in] short value to be set.
PutMxDataType Method
Provides a method to set the value from a MxDataType.
Syntax
public void PutMxDataType(MxDataType newVal);
Parameter
newVal
[in] MxDataType value to be set.
PutMxDataTypeArray Method
Provides a method to set the value from a MxDataType
array.
Syntax
public void PutMxDataTypeArray(MxDataType[] values);
Parameter
values
[in] MxDataType[ ] values to be set.
PutMxReference Method
Provides a method to set the value from a IMxReference.
Syntax
public void PutMxReference(IMxReference newVal);
Parameter
newVal
[in] IMxReference value to be set.
PutMxReferenceArrayAsStrings Method
Provides a method to set the value of a reference array from
an array of strings.
Syntax
public void PutMxReferenceArrayAsStrings(string[]
values);
Parameter
values
[in] string[ ] value to set the reference string of
CMxReferenceArray.
PutMxReferenceAsString Method
Provides a method to set the value of a reference from a
string.
Syntax
public void PutMxReferenceAsString(string newVal);
Parameter
newVal
[in] string value to be set.
PutMxSecurityClassification Method
Provides a method to set the value from a
MxSecurityClassification.
Syntax
public void
PutMxSecurityClassification(MxSecurityClassification
newVal);
Parameter
newVal
[in] MxSecurityClassification value to be set.
PutMxSecurityClassificationArray Method
Provides a method to set the value from a
MxSecurityClassification array.
Syntax
public void
PutMxSecurityClassificationArray(MxSecurityClassific
ation[] newVal);
Parameter
newVal
[in] MxSecurityClassification[ ] value to be set.
PutMxStatus Method
Provides a method to set the value from a MxStatus.
Syntax
public void PutMxStatus(MxStatus newVal);
Parameter
newVal
[in] MxStatus value to be set.
PutMxStatusArray Method
Provides a method to set the value from a MxStatus array.
Syntax
public void PutMxStatusArray(MxStatus[] values);
Parameter
values
[in] MxStatus[ ] value to be set.
PutString Method
Provides a method to set the value from a string.
Syntax
public void PutString(string newVal);
Parameter
newVal
[in] string value to be set to CMxString.
PutStringArray Method
Provides a method to set the value from a string array.
Syntax
public void PutStringArray(string[] values);
Parameter
values
[in] string[ ] value to be set.
PutTime Method
Provides a method to set the value from a DateTime.
Syntax
public void PutTime(DateTime val);
Parameter
val
[in] DateTime value to be set.
PutTimeArray Method
Provides a method to set the value from a DateTime array.
Syntax
public void PutTimeArray(DateTime[] values);
Parameter
values
[in] DateTime[ ] value to be set.
ToString Method
Provides a method to output the value as a string.
Syntax
public override string ToString();
Return Value
string
• String Overload
String Overload
Provides a conversion operator to convert from CMxValue to
string.
Syntax
public static implicit operator string(CMxValue val);
Parameter
val
[in] CMxValue to convert to string.
Return Value
string
CMxType Class
CMxType is an abstract class that provides the methods and
properties available to all classes for supporting
CMx{type}{Array} style classes.
Syntax
public abstract class CMxType
CMxType Properties
The following are the properties of the CMxType class.
• Attribute Property
• AttributeRef Property
• Owner Property
• Runtime Property
• RuntimeSite2 Property
• Attribute Property
• Category Property
• Checkpoint Property
• DataType Property
• DefValue Property
• LiteMode Property
• Locked Property
• MxValue Property
• Quality Property
• Time Property
• Security Property
• SetHandlerValue Property
Attribute Property
Provides a property to hold information about the Attribute
from ArchestrA.
Syntax
protected AttributeHandle attribute;
Return Value
AttributeHandle
AttributeRef Property
Provides a property to hold the attribute reference string
when CMxType classes are used to implement properties of
Primitive Attributes.
Syntax
protected string attributeRef;
Return Value
string
Owner Property
Provides a property to hold a handle to the owner of the
object which also provides access to ArchestrA Site pointers.
Syntax
protected AObjectBase owner;
Return Value
AObjectBase
Runtime Property
Provides a property to hold an indication that the object is
currently servicing the Runtime.
Syntax
protected bool runtime;
Return Value
bool
RuntimeSite2 Property
Provides a property to hold a handle to the
IPrimitiveRuntimeSite2 site for the current attribute when
the object is correctly configured at Runtime.
Syntax
protected IPrimitiveRuntimeSite2 runtimeSite2;
Return Value
IPrimitiveRuntimeSite2
Attribute Property
Provides a property to get and set the AttributeHandle.
Syntax
AttributeHandle Attribute { get; set; }
Return Value
AttributeHandle
Category Property
Provides a property to get the MxAttributeCategory.
Syntax
public virtual MxAttributeCategory Category { get; }
Return Value
MxAttributeCategory
Checkpoint Property
Provides a property to Checkpoint the attribute at runtime.
Syntax
public bool Checkpoint { set; }
Return Value
bool
DataType Property
Provides a property to get the MxDataType.
Syntax
public virtual MxDataType DataType { get; }
Return Value
MxDataType
DefValue Property
Provides a property to return the default value as a string.
Syntax
public abstract string DefValue { get; }
Return Value
string
LiteMode Property
Provides a property to indicate if the class is running
disconnected from ArchestrA.
Syntax
public bool LiteMode { get; }
Return Value
bool
Locked Property
Provides a property to get and set the lock of the Attribute.
Syntax
public bool Locked { get; set; }
Return Value
bool
MxValue Property
Provides a property to get and set the IMxValue of the
Attribute.
Syntax
public virtual IMxValue mxValue { get; set; }
Return Value
MxValueClass
Quality Property
Provides a property to get and set the Quality of the
Attribute.
Syntax
public abstract CMxDataQuality Quality { get; set; }
Return Value
CMxDataQuality
Time Property
Provides a property to get and set the Time of the Attribute.
Syntax
public abstract CMxTime Time { get; set; }
Return Value
CMxTime
Security Property
Provides a property to get and set the Security of the
Attribute.
Syntax
public virtual MxSecurityClassification Security { get;
set; }
Return Value
MxSecurityClassification
SetHandlerValue Property
Provides a property to set the value from a
SetHandlerEventArgs value.
Syntax
public virtual SetHandlerEventArgs SetHandlerValue {
set; }
Return Value
SetHandlerEventArgs
CMxType Constructor
The following is the constructor of the CMxType class.
• Initialize Method
CMxType Constructor
Provides a constructor to initialize the class for use in a
primitive wrapper.
Syntax
public CMxType(SupportWrapper _wrapper, string
_attributeRef);
Parameters
_wrapper
[in] SupportWrapper.
_attributeRef
[in] string value that holds the attribute reference.
CMxType Methods
The following are the methods of the CMxType class.
• Initialize Method
• CheckConnect Method
• PadMiliseconds Method
• UpdateArrayLength Method
Initialize Method
Provides a method to initialize the attribute with ArchestrA
information.
Syntax
public void Initialize(AttributeHandle _attribute,
AObjectBase _owner, bool _runtime);
Parameters
_attribute
[in] AttributeHandle handle as a parameter.
_owner
[in] base class object of type AObjectBase.
_runtime
[in] bool value to indicate Runtime or not.
CheckConnect Method
Provides a method to verify and connect to ArchestrA if
needed for primitive wrappers.
Syntax
protected void CheckConnect();
PadMiliseconds Method
Provides a method to get the ArchestrA style milliseconds as
a string from a TimeSpan.
Syntax
protected string PadMiliseconds(TimeSpan ts);
Parameter
ts
[in] TimeSpan value.
Return Value
string
UpdateArrayLength Method
Provides a method to set the length of an array to a new
length.
Syntax
protected void UpdateArrayLength(int newLength);
Parameter
newlength
[in] int value that holds the new length of the array.
CMxCommon Class
CMxCommon is derived from CMxType and provides the
default implementation for all non-array types.
Syntax
public abstract class CMxCommon : CMxType
CMxCommon Property
The following is the property of the CMxCommon class.
• DefaultValue Property
DefaultValue Property
Provides a property to hold the default value.
Syntax
public object defaultValue;
Return Value
object
CMxCommon Constructors
The following are the constructors of the CMxCommon class.
• CMxCommon Constructor
CMxCommon Constructor
Provides a default constructor.
Syntax
CMxCommon();
CMxArrayBase Class
CMxArrayBase is derived from CMxType and provides the
default implementation for all array types.
Syntax
public abstract class CMxArrayBase : CMxType
CMxArrayBase Properties
The following are the properties of the CMxArrayBase class.
• DefLength Property
• Length Property
DefLength Property
Provides a property to return a int of the default value.
Syntax
protected abstract int DefLength { get; set; };
Return Value
int
Length Property
Provides a property to get and set the Length.
Syntax
public int Length { get; set; }
Return Value
int
CMxArrayBase Constructors
The following are the constructors of the CMxArrayBase
class.
• CMxArrayBase Constructor
CMxArrayBase Constructor
Provides a default constructor.
Syntax
public CMxArrayBase();
CMxArray<T> Class
CMxArray is derived from CMxArrayBase. It is a template
class that can be implemented for each type to be supported
to provide type safe data access.
Syntax
public abstract class CMxArray<T> : CMxArrayBase
CMxArray<T> Constructor
The following is the constructor of the CMxArray<T> class.
• CMxArray
CMxArray
Provides a constructor to initialize the class for use in a
primitive wrapper.
Syntax
public CMxArray(SupportWrapper _wrapper, string
_attributeRef);
Parameters
_wrapper
[in] SupportWrapper.
_attributeRef
[in] string value that holds the attribute reference.
CMxBoolean Class
CMxBoolean is derived from CMxCommon and provides
support for Boolean Attributes.
Syntax
public class CMxBoolean : CMxCommon
CMxBoolean Property
The following is the property of the CMxBoolean class.
• Value Property
Value Property
Provides a property to get and set the value as a bool.
Syntax
public bool Value { get; set; }
Return Value
bool
CMxBoolean Constructors
The following are the constructors of the CMxBoolean class.
• CMxBoolean Constructor
CMxBoolean Constructor
Provides a default constructor.
Syntax
public CMxBoolean();
CMxBoolean Method
The following is the method of the CMxBoolean class.
• Set Method
Set Method
Provides a method to set the value of the Attribute from a
CMxBoolean.
Syntax
public void Set(CMxBoolean val);
Parameter
val
[in] CMxBoolean value to be set.
CMxBooleanArray Class
CMxBooleanArray is derived from CMxArray and provides
support for Boolean Array Attributes.
Syntax
public class CMxBooleanArray : CMxArray<bool>
CMxBooleanArray Properties
The following are the properties of the CMxBooleanArray
class.
• Value Property
Value Property
Provides a property to get and set the value as a bool array.
Syntax
public bool[] Value { get; set; }
Return Value
bool[ ]
CMxBooleanArray Constructors
The following are the constructors of the CMxBooleanArray
class.
• CMxBooleanArray Constructor (int)
CMxBooleanArray Method
The following is the method of the CMxBooleanArray class.
• Set Method
Set Method
Provides a method to set the value of the Attribute from a
CMxBooleanArray.
Syntax
public void Set(CMxBooleanArray newValue);
Parameter
newValue
[in] CMxBooleanArray value to be set.
• Bool[ ] Overload
Bool[ ] Overload
Provides an operator to convert a CMxBooleanArray into a
bool array.
Syntax
public static implicit operator bool[](CMxBooleanArray
val);
Parameter
val
[in] CMxBooleanArray value to convert to bool[].
Return Value
bool[ ]
CMxFloat Class
CMxFloat is derived from CMxCommon and provides
support for float Attributes.
Syntax
public class CMxFloat : CMxCommon
CMxFloat Property
The following is the property of the CMxFloat class.
• Value Property
Value Property
Provides a property to get and set the value as a float.
Syntax
public float Value { get; set; }
Return Value
float
CMxFloat Constructors
The following are the constructors of the CMxFloat class.
• CMxFloat Constructor
CMxFloat Constructor
Provides a default constructor.
Syntax
public CMxFloat();
CMxFloat Method
The following is the method of the CMxFloat class.
• Set Method
Set Method
Provides a method to set the value of the Attribute from a
CMxFloat.
Syntax
public void Set(CMxFloat val);
Parameter
val
[in] CMxFloat value to be set.
CMxFloatArray Class
CMxFloatArray is derived from CMxArray and provides
support for float Array Attributes.
Syntax
public class CMxFloatArray : CMxArray<float>
CMxFloatArray Properties
The following are the properties of the CMxFloatArray class.
• Value Property
Value Property
Provides a property to get and set the value as a float array.
Syntax
public float [] Value { get; set; }
Return Value
float [ ]
CMxFloatArray Constructors
The following are the constructors of the CMxFloatArray
class.
• CMxFloatArray Constructor (int)
CMxFloatArray Method
The following is the method of the CMxFloatArray class.
• Set Method
Set Method
Provides a method to set the value of the Attribute from a
CMxFloat Array.
Syntax
public void Set(CMxFloatArray newValue);
Parameter
newValue
[in] CMxFloatArray value to be set.
CMxDouble Class
CMxDouble is derived from CMxCommon and provides
support for Double Attributes.
Syntax
public class CMxDouble : CMxCommon
CMxDouble Property
The following is the property of the CMxDouble class.
• Value Property
Value Property
Provides a property to get and set the value as a double.
Syntax
public double Value { get; set; }
Return Value
double
CMxDouble Constructors
The following are the constructors of the CMxDouble class.
• CMxDouble Constructor
• CMxDouble Constructor (double)
CMxDouble Constructor
Provides a default constructor.
Syntax
public CMxDouble();
CMxDouble Method
The following is the method of the CMxDouble class.
• Set Method
Set Method
Provides a method to set the value of the Attribute from a
CMxDouble.
Syntax
public void Set(CMxDouble val);
Parameter
val
[in] CMxDouble value to be set.
CMxDoubleArray Class
CMxDoubleArray is derived from CMxArray and provides
support for Double Array Attributes.
Syntax
public class CMxDoubleArray : CMxArray<double>
CMxDoubleArray Properties
The following are the properties of the CMxDoubleArray
class.
• Value Property
• Property to Get and Set Double Value using [ ] Operator
Value Property
Provides a property to get and set the value as a double
array.
Syntax
public double [] Value { get; set; }
Return Value
double [ ]
CMxDoubleArray Constructors
The following are the constructors of the CMxDoubleArray
class.
• CMxDoubleArray Constructor (int)
Syntax
public CMxDoubleArray(int length);
Parameter
length
[in] int value that holds the length of array.
CMxDoubleArray Method
The following is the method of the CMxDoubleArray class.
• Set Method
Set Method
Provides a method to set the value of the Attribute from a
CMxDoubleArray.
Syntax
public void Set(CMxDoubleArray newValue);
Parameter
newValue
[in] CMxDoubleArray value to be set.
Return Value
double
CMxInteger Class
CMxInteger is derived from CMxCommon and provides
support for Integer Attributes.
Syntax
public class CMxInteger : CMxCommon
CMxInteger Property
The following is the property of the CMxInteger class.
• Value Property
Value Property
Provides a property to get and set the value as an int.
Syntax
public int Value { get; set; }
Return Value
int
CMxInteger Constructors
The following are the constructors of the CMxInteger class.
• CMxInteger Constructor
• CMxInteger Constructor (int)
CMxInteger Constructor
Provides a default constructor.
Syntax
public CMxInteger();
CMxInteger Method
The following is the method of the CMxInteger class.
• Set Method
Set Method
Provides a method to set the value of the Attribute from a
CMxInteger.
Syntax
public void Set(CMxInteger val);
Parameter
val
[in] CMxInteger value to be set.
CMxIntegerArray Class
CMxIntegerArray is derived from CMxArray and provides
support for Integer Array Attributes.
Syntax
public class CMxIntegerArray : CMxArray<int>
CMxIntegerArray Properties
The following are the properties of the CMxIntegerArray
class.
• Value Property
• Property to Get and Set the Int Value using the [ ]
Operator
Value Property
Provides a property to get and set the value as an int array.
Syntax
public int Value { get; set; }
Return Value
int[ ]
CMxIntegerArray Constructors
The following are the constructors of the CMxIntegerArray
class.
• CMxIntegerArray Constructor (int)
CMxIntegerArray Method
The following is the method of the CMxIntegerArray class.
• Set Method
Set Method
Provides a method to set the value of the Attribute from a
CMxIntegerArray.
Syntax
public void Set(CMxIntegerArray newValue);
Parameter
newValue
[in] CMxIntegerArray instance value to be set.
CMxCustomEnum Class
CMxCustomEnum is derived from CMxCommon and
provides support for Enum Attributes.
Syntax
public class CMxCustomEnum : CMxCommon
CMxCustomEnum Properties
The following are the properties of the CMxCustomEnum
class.
• Value Property
• Text Property
Value Property
Provides a property to get and set the ordinal value as a
short.
Syntax
public short Value { get; set; }
Return Value
short
Text Property
Provides a property to get and set the text value as a string.
Syntax
public string Text { get; set; }
Return Value
string
CMxCustomEnum Constructors
The following are the constructors of the CMxCustomEnum
class.
• CMxCustomEnum Constructor
CMxCustomEnum Constructor
Provides a default constructor.
Syntax
public CMxCustomEnum();
CMxCustomEnum Method
The following is the method of the CMxCustomEnum class.
• Set Method
Set Method
Provides a method to set the value of the Attribute from a
CMxCustomEnum.
Syntax
public void Set(CMxCustomEnum val);
Parameter
val
[in] CMxCustomEnum instance value to be set.
EnumText Class
EnumText is a utility class within CMxCustomEnumArray.
It provides a method to access the value of an element of the
array as a string by specifying its ordinal value.
Syntax
public class EnumText
EnumText Property
The following is the property of the EnumText class.
• Property to get and set the value of an element of the
Enum Array
EnumText Method
The following is the method of the EnumText class.
• EnumText Constructor
EnumText Constructor
Provides a constructor that takes the owning
CMxCustomEnumArray.
Syntax
public EnumText(CMxCustomEnumArray _owner);
Parameter
_owner
[in] CMxCustomEnumArray value to be set.
CMxCustomEnumArray Class
CMxCustomEnumArray is derived from CMxArray and
provides support for Enum Array Attributes.
Syntax
public class CMxCustomEnumArray : CMxArray<short>
CMxCustomEnumArray Properties
The following are the properties of the
CMxCustomEnumArray class.
• Text Property
• Value Property
Text Property
Provides an EnumText to allow accessing elements as
strings.
Syntax
public EnumText Text;
Return Value
EnumText
Value Property
Provides a property to get and set the values of the ordinals
as a short array.
Syntax
public short[] Value { get; set; }
Return Value
short[ ]
CMxCustomEnumArray Constructors
The following are the constructors of the
CMxCustomEnumArray class.
• CMxCustomEnumArray Constructor (string, int, short[ ])
CMxCustomEnumArray Constructor
(SupportWrapper, string)
Provides a constructor to initialize the class for use in a
primitive wrapper.
Syntax
public CMxCustomEnumArray(SupportWrapper _wrapper,
string _attributeRef);
Parameters
_wrapper
[in] SupportWrapper.
_attributeRef
[in] string value that holds the attribute reference.
CMxCustomEnumArray Methods
The following are the methods of the
CMxCustomEnumArray class.
• GetString Method
• SetString Method
• Set Method
GetString Method
Provides a method to get the value of an element from an
ordinal as a short.
Syntax
public string GetString(short i);
Parameter
i
[in] short value that holds the index.
Return Value
string
SetString Method
Provides a method to set the value of an element from a
string.
Syntax
public void SetString(short i, string value);
Parameters
i
[in] short value that holds the index.
value
[in] string value to be set.
Set Method
Provides a method to set the value of the Attribute from a
CMxCustomEnumArray.
Syntax
public void Set(CMxCustomEnumArray newValue);
Parameter
newValue
[in] CMxCustomEnumArray value to be set.
CMxCustomStruct Class
CMxCustomStruct is derived from CMxCommon and
provides support for custom data in the form of a guid and
byte array.
Syntax
public class CMxCustomStruct : CMxCommon
CMxCustomStruct Property
The following is the property of the CMxCustomStruct class.
• Value Property
Value Property
Provides a property to get and set the value as an
MxCustomStruct.
Syntax
public MxCustomStruct Value { get; set; }
Return Value
MxCustomStruct
CMxCustomStruct Constructors
The following are the constructors of the CMxCustomStruct
class.
• CMxCustomStruct Constructor
CMxCustomStruct Constructor
Provides a default constructor.
Syntax
public CMxCustomStruct();
CMxCustomStruct Method
The following are the methods of the CMxCustomStruct
class.
• GetObject Method
• StoreObject Method
• Set Method
GetObject Method
Provides a method to retrieve a serialized C# object from the
data in a CMxCustomStruct.
Syntax
public object GetObject();
Return Value
object
StoreObject Method
Provides a method to serialize and store a C# object into the
data of a CMxCustomStruct.
Syntax
public void StoreObject(object obj);
Parameter
obj
[in] C# object to be stored.
Set Method
Provides a method to set the value of the Attribute from a
CMxCustomStruct.
Syntax
public void Set(CMxCustomStruct val);
Parameter
val
[in] CMxCustomStruct value to be set.
CMxCustomStructArray Class
CMxCustomStructArray is derived from CMxArray and
provides support for an array of custom data in the form of a
guid and byte array.
Syntax
public class CMxCustomStructArray :
CMxArray<MxCustomStruct>
CMxCustomStructArray Properties
The following are the properties of the
CMxCustomStructArray class.
• Value Property
Value Property
Provides a property to get and set the value as an
MxCustomStruct array.
Syntax
public MxCustomStruct[] Value { get; set; }
Return Value
MxCustomStruct[ ]
CMxCustomStructArray Constructors
The following are the constructors of the
CMxCustomStructArray class.
• CMxCustomStructArray Constructor (int)
• CMxCustomStructArray Constructor
(MxCustomStruct[ ])
CMxCustomStructArray Constructor
(MxCustomStruct[ ])
Provides a constructor to initialize CustomStructArray with
an array of MxCustomStruct.
Syntax
public CMxCustomStructArray(MxCustomStruct[] value);
Parameter
value
[in] MxCustomStruct[ ] value to be set.
CMxCustomStructArray Constructor
(SupportWrapper, string)
Provides a constructor to initialize the class for use in a
primitive wrapper.
Syntax
public CMxCustomStruct(SupportWrapper _wrapper, string
_attributeRef);
Parameters
_wrapper
[in] SupportWrapper.
_attributeRef
[in] string value that holds the attribute reference.
CMxCustomStructArray Method
The following is the method of the CMxCustomStructArray
class.
• Set Method
Set Method
Provides a method to set the value of the Attribute from a
CMxCustomStructArray.
Syntax
public void Set(CMxCustomStructArray newValue);’
Parameter
newValue
[in] CMxCustomStructArray value to be set.
Parameter
val
[in] CMxCustomStructArray value to convert to
MxCustomStruct[ ].
Return Value
MxCustomStruct[ ]
CMxDataType Class
CMxDataType is derived from CMxCommon and provides
support for MxDataType Attributes.
Syntax
public class CMxDataType : CMxCommon
CMxDataType Property
The following is the property of the CMxDataType class.
• Value Property
Value Property
Provides a property to get and set the value as an
MxDataType.
Syntax
public MxDataType Value { get; set; }
Return Value
MxDataType
CMxDataType Constructors
The following are the constructors of the CMxDataType
class.
• CMxDataType Constructor
CMxDataType Constructor
Provides a default constructor.
Syntax
public CMxDataType();
CMxDataType Method
The following are the methods of the CMxDataType class.
• Set Method
Set Method
Provides a method to set the value of the Attribute from a
CMxDataType.
Syntax
public void Set(CMxDataType val);
Parameter
val
[in] CMxDataType value to be set
CMxDataTypeArray Class
CMxDataTypeArray is derived from CMxArray and provides
support for MxDataType Array Attributes.
Syntax
public class CMxDataTypeArray : CMxArray<MxDataType>
CMxDataTypeArray Properties
The following are the properties of the CMxDataTypeArray
class.
• Value Property
Value Property
Provides a property to get and set the value as a
MxDataType array.
Syntax
public MxDataType[] Value { get; set; }
Return Value
MxDataType[ ]
CMxDataTypeArray Constructors
The following are the constructors of the CMxDataTypeArray
class.
• CMxDataTypeArray Constructor (int)
CMxDataTypeArray Method
The following are the methods of the CMxDataTypeArray
class.
• CMxDataTypeArray Constructor (SupportWrapper,
string)
Set Method
Provides a method to set the value of the Attribute from a
CMxDataTypeArray.
Syntax
public void Set(CMxDataTypeArray newValue);
Parameter
newValue
[in] CMxDataTypeArray value to be set
CMxElapsedTime Class
CMxElapsedTime is derived from CMxCommon and provides
support for Elapsed time/Timespan Attributes.
Syntax
public class CMxElapsedTime : CMxCommon
CMxElapsedTime Property
The following is the property of the CMxElapsedTime class.
• Value Property
Value Property
Provides a property to get and set the value as a TimeSpan.
Syntax
public TimeSpan Value { get; set; }
Return Value
TimeSpan
CMxElapsedTime Constructors
The following are the constructors of the CMxElapsedTime
class.
• CMxElapsedTime Constructor
CMxElapsedTime Constructor
Provides a default constructor.
Syntax
public CMxElapsedTime();
CMxElapsedTime Method
The following is the method of the CMxElapsedTime class.
• Set Method
Set Method
Sets the value of the Attribute from a CMxElapsedTime.
Syntax
public void Set(CMxElapsedTime val);
Parameter
val
[in] CMxElapsedTime value to be set.
• != Operator Overload
• == Operator Overload
!= Operator Overload
Provides an operator to compare a CMxElapsedtime with a
TimeSpan.
Syntax
public static bool operator !=(CMxElapsedTime t1,
TimeSpan t2);
Parameters
t1
[in] CMxElapsedTime value.
t2
[in] TimeSpan value.
Return Value
bool
== Operator Overload
Provides an operator to test if a CMxElapsedTime and a
TimeSpan are equal.
Syntax
public static bool operator ==(CMxElapsedTime t1,
TimeSpan t2);
Parameters
t1
[in] CMxElapsedTime value.
t2
[in] TimeSpan value.
Return Value
bool
CMxElapsedTimeArray Class
CMxElapsedTimeArray is derived from CMxArray and
provides support for Elapsed time/Timespan Array
Attributes.
Syntax
public class CMxElapsedTimeArray : CMxArray<TimeSpan>
CMxElapsedTimeArray Properties
The following are the properties of the
CMxElapsedTimeArray class.
• Value Property
Value Property
Provides a property to get and set the value as a TimeSpan
array.
Syntax
public TimeSpan[] Value { get; set; }
Return Value
TimeSpan[ ]
CMxElapsedTimeArray Constructors
The following are the constructors of the
CMxElapsedTimeArray class.
• CMxElapsedTimeArray Constructor (int)
• CMxElapsedTimeArray Constructor (TimeSpan)
• CMxElapsedTimeArray Constructor
CMxElapsedTimeArray Constructor
Provides a constructor to initialize the class for use in a
primitive wrapper.
Syntax
public CMxElapsedTimeArray (SupportWrapper _wrapper,
string _attributeRef);
Parameters
_wrapper
[in] SupportWrapper.
_attributeRef
[in] string that holds the attribute reference.
CMxElapsedTimeArray Method
The following is the method of the CMxElapsedTimeArray
class.
• Set Method
Set Method
Sets the value of the Attribute from a
CMxElapsedTimeArray.
Syntax
public void Set(CMxElapsedTimeArray newValue);
Parameter
newValue
[in] CMxElapsedTimeArray value to be set.
CMxInternationalizedString Class
CMxInternationalizedString is derived from CMxCommon
and provides support for Internationalized string Attributes.
Syntax
public class CMxInternationalizedString : CMxCommon
CMxInternationalizedString Properties
The following are the properties of the
CMxInternationalizedString class.
• Value Property
• Locale Property
Value Property
Provides a property to get and set the value as an
MxDataType.
Syntax
public MxDataType Value { get; set; }
Return Value
MxDataType
Locale Property
Provides a method return a string of the default value.
Syntax
public int Locale { get; set; }
Return Value
int
CMxInternationalizedString Constructors
The following are the constructors of the
CMxInternationalizedString class.
• CMxInternationalizedString Constructor
• CMxInternationalizedString Constructor
SupportWrapper, string
CMxInternationalizedString Constructor
Provides a default constructor.
Syntax
public CMxInternationalizedString ();
CMxInternationalizedString Constructor
SupportWrapper, string
Provides a constructor that initializes the class for use in a
primitive wrapper.
Syntax
public CMxInternationalizedString (SupportWrapper
_wrapper, string _attributeRef);
Parameters
_wrapper
[in] SupportWrapper
_attributeRef
[in] string value that holds the attribute reference.
CMxInternationalizedString Methods
The following are the methods of the
CMxInternationalizedString class.
• GetString Method
• SetString Method
• Set Method
GetString Method
Provides a method to get the value of the Attribute for a
specified locale.
Syntax
public string GetString(int _locale);
Parameter
Locale
[in] int value that holds the locale.
Return Value
string
SetString Method
Provides a method to set the value of the Attribute for a
specified locale.
Syntax
public void SetString(int _locale, string val);
Parameter
Locale
[in] int value that holds the locale to be set.
Set Method
Provides a method to set the value of the Attribute from a
CMxInternationalizedString.
Syntax
public void Set(CMxInternationalizedString newValue);
Parameter
newValue
[in] CMxInternationalizedString value to be set.
CMxInternationalizedString Operator
Overloads
The following are the operator overloads of the
CMxInternationalizedString class.
• CMxValue Operator Overload
CMxInternationalizedStringArray Class
CMxInternationalizedStringArray is derived from CMxArray
and provides support for Arrays of Internationalized Strings.
Syntax
public class CMxInternationalizedStringArray :
CMxArray<string>
CMxInternationalizedStringArray Properties
The following are the properties of the
CMxInternationalizedStringArray class.
• Locale Property
• Value Property
Locale Property
Provides a property to gets or set the current locale.
Syntax
public int Locale { get; set; }
Return Value
int
Value Property
Provides a property to get and set the value of the current
locale as an array of strings.
Syntax
public string[] Value { get; set; }
Return Value
string[ ]
CMxInternationalizedStringArray Constructors
The following are the constructors of the
CMxInternationalizedStringArray class.
• CMxInternationalizedStringArray Constructor int
• CMxInternationalizedStringArray Constructor
SupportWrapper, string
CMxInternationalizedStringArray Constructor
SupportWrapper, string
Provides a constructor to initialize the class for use in a
primitive wrapper.
Syntax
public CMxInternationalizedStringArray(SupportWrapper
_wrapper, string _attributeRef);
Parameters
_wrapper
[in] SupportWrapper.
_attributeRef
[in] string value that holds the attribute reference.
CMxInternationalizedStringArray Methods
The following are the methods of the
CMxInternationalizedStringArray class.
• GetString Method
• GetStrings Method
• SetString Method
• Set Method
GetString Method
Provides a method to get the value of an element by locale.
Syntax
public string GetString(short index, int _locale);
Parameter
index
[in] index of the element.
locale
[in] int value that holds the locale.
Return Value
string
GetStrings Method
Provides a method to get the value of all elements by locale.
Syntax
public string[] GetStrings(int _locale);
Parameter
locale
[in] Int value that holds the locale.
Return Value
string[ ]
SetString Method
Provides a method to set the value of a element by locale.
Syntax
public void SetString(short index, int _locale, string
val);
Parameters
index
[in] index of the element.
locale
[in] Int value that holds the locale to be set.
val
[in] string that holds the value to be set.
Set Method
Provides a method to set the value of the Attribute from a
CMxInternationalizedStringArray.
Syntax
public void Set(CMxInternationalizedStringArray
newValue);
Parameter
val
[in] CMxInternationalizedStringArray value to be set.
CMxInternationalizedStringArray Operator
Overloads
The following are the operator overloads of the
CMxInternationalizedStringArray class.
• string[ ] Operator Overload
CMxReference Class
CMxReference is derived from CMxCommon and provides
support for Reference Attributes.
Syntax
public class CMxReference : CMxCommon
CMxReference Property
The following is the property of the CMxReference class.
• Value Property
Value Property
Provides a property to get or set the value as a full reference
string.
Syntax
public string Value { get; set; }
Return Value
string
CMxReference Constructors
The following are the constructors of the CMxReference
class.
• CMxReference Constructor
CMxReference Constructor
Provides a default constructor.
Syntax
public CMxReference ();
CMxReference Method
The following is the method of the CMxReference class.
• Set Method
Set Method
Provides a method to set the value of the Attribute from a
CMxReference.
Syntax
public void Set(CMxReference val);
Parameter
val
[in] CMxReference value.
CMxReferenceArray Class
CMxReferenceArray is derived from CMxArray and provides
support for Reference Array Attributes.
Syntax
public class CMxReferenceArray : CMxArray<string>
CMxReferenceArray Properties
The following are the properties of the CMxReferenceArray
class.
• Value Property
Value Property
Provides a property to get or set the value as a string array.
Syntax
public string[] Value { get; set; }
Return Value
string[ ]
CMxReferenceArray Constructors
The following are the constructors of the CMxReferenceArray
class.
• CMxReferenceArray Constructor int
CMxReferenceArray Method
The following is the method of the CMxReferenceArray class.
• Set Method
Set Method
Provides a method to set the value of the Attribute from a
CMxReferenceArray.
Syntax
public void Set(CMxReferenceArray newValue);
Parameter
newValue
[in] CMxReferenceArray instance value.
CMxStatus Class
CMxStatus is derived from CMxCommon and provides
support for MxStatus Attributes.
Syntax
public class CMxStatus : CMxCommon
CMxStatus Property
The following is the property of the CMxStatus class.
• Value Property
Value Property
Provides a Property to get and set the value as an MxStatus.
Syntax
public MxStatus Value { get; set; }
Return Value
MxStatus
CMxStatus Constructors
The following are the constructors of the CMxStatus class.
• CMxStatus Constructor
CMxStatus Constructor
Provides a default constructor.
Syntax
public CMxStatus();
CMxStatus Method
The following is the method of the CMxStatus class.
• Set Method
Set Method
Provides a method to set the value of the Attribute from a
CMxStatus.
Syntax
public void Set(CMxStatus val);
Parameter
val
[in] CMxStatus value to be set.
CMxStatusArray Class
CMxStatusArray is derived from CMxArray and provides
support for MxStatus Array Attributes.
Syntax
public class CMxStatusArray : CMxArray<MxStatus>
CMxStatusArray Properties
The following are the properties of the CMxStatusArray
class.
• Value Property
Value Property
Provides a Property to get and set the value as a MxStatus
array.
Syntax
public MxStatus[] Value { get; set; }
Return Value
MxStatus[ ]
CMxStatusArray Constructors
The following are the constructors of the CMxStatusArray
class.
• CMxStatusArray Constructor int
CMxStatusArray Method
The following is the method of the CMxStatusArray class.
• Set Method
Set Method
Provides a method to set the value of the Attribute from a
CMxStatusArray.
Syntax
public void Set(CMxStatusArray newValue);
Parameter
newValue
[in] CMxStatusArray value to be set.
CMxString Class
CMxString is derived from CMxCommon and provides
support for string Attributes.
Syntax
public class CMxString : CMxCommon
CMxString Property
The following is the property of the CMxString class.
• Value Property
Value Property
Provides a property to get and set the value as a string.
Syntax
public string Value { get; set; }
Return Value
string
CMxString Constructors
The following are the constructors of the CMxString class.
• CMxString Constructor
CMxString Constructor
Provides a default constructor.
Syntax
public CMxString();
CMxString Method
The following is the method of the CMxString class.
• Set Method
Set Method
Provides a method to set the value of the Attribute from a
CMxString.
Syntax
public void Set(CMxString val);
Parameter
val
[in] CMxString value to be set.
CMxStringArray Class
CMxStringArray is derived from CMxArray and provides
support for string Array Attributes.
Syntax
public class CMxStringArray : CMxArray<string>
CMxStringArray Properties
The following are the properties of the CMxStringArray
class.
• Value Property
Value Property
Provides a property to get and set the value as a string array.
Syntax
public string[] Value { get; set; }
Return Value
string[ ]
CMxStringArray Constructors
The following are the constructors of the CMxStringArray
class.
• CMxStringArray Constructor int
CMxStringArray Method
The following is the method of the CMxStringArray class.
• Set Method
Set Method
Provides a method to set the value of the Attribute from a
CMxStringArray.
Syntax
public void Set(CMxStringArray newValue);
Parameter
newValue
[in] CMxStringArray value to be set.
CMxTime Class
CMxTime is derived from CMxCommon and provides support
for Time/DateTime Attributes.
Syntax
public class CMxTime : CMxCommon
CMxTime Property
The following is the property of the CMxTime class.
• Value Property
Value Property
Provides a property to get and set the value as a DateTime.
Syntax
public DateTime Value { get; set; }
Return Value
DateTime
CMxTime Constructors
The following are the constructors of the CMxTime class.
• CMxTime Constructor
CMxTime Constructor
Provides a default constructor.
Syntax
public CMxTime();
CMxTime Method
The following is the method of the CMxTime class.
• Set Method
Set Method
Provides a method to set the value of the Attribute from a
CMxTime.
Syntax
public void Set(CMxTime val);
Parameter
val
[in] CMxTime value to be set.
CMxTimeArray Class
CMxTimeArray is derived from CMxArray and provides
support for Time/DateTime Array Attributes.
Syntax
public class CMxTimeArray : CMxArray<DateTime>
CMxTimeArray Properties
The following are the properties of the CMxTimeArray class.
• Value Property
Value Property
Provides a property to get and set the value as a DateTime
array.
Syntax
public DateTime[] Value { get; set; }
Return Value
DateTime[ ]
CMxTimeArray Constructors
The following are the constructors of the CMxTimeArray
class.
• CMxTimeArray Constructor int
CMxTimeArray Method
The following is the method of the CMxTimeArray class.
• Set Method
Set Method
Provides a method to set the value of the Attribute from a
CMxTimeArray.
Syntax
public void Set(CMxTimeArray newValue);
Parameter
newValue
[in] CMxTimeArray value to be set.
CMxVariant Class
CMxVariant class is derived from CMxCommon and provides
support for variant Attributes.
Syntax
public class CMxVariant : CMxCommon
CMxVariant Property
The following is the property of the CMxVariant class.
• Value Property
Value Property
Provides a property to get and set the value as a string.
Syntax
public CMxValue Value { get; set; }
Return Value
CMxValue
CMxVariant Constructors
The following are the constructors of the CMxVariant class.
• CMxVariant Constructor
CMxVariant Constructor
Provides a default constructor.
Syntax
public CMxVariant();
CMxVariant Methods
The following are the methods of the CMxVariant class.
• Set Method
• SetDataType Method
Set Method
Provide a method to set the value of the Attribute from a
CMxVariant
Syntax
public void Set(CMxVariant val);
Parameter
val
[in] CMxVariant value to be set.
SetDataType Method
Provides a method to set the MxDataType of the Attribute.
Syntax
public void SetDataType(MxDataType dtype);
Parameter
dtype
[in] MxDataType value to be set.
CMxVariantArray Class
CMxVariantArray is derived from CMxArray and provides
support for Variant Array Attributes.
Syntax
public class CMxVariantArray : CMxArray<CMxValue)
CMxVariantArray Properties
The following are the properties of the CMxVariantArray
class.
• Value Property
Value Property
Provides a property to get and set the value as a CMxValue
array.
Syntax
public CMxValue [] Value { get; set; }
Return Value
CMxValue [ ]
CMxVariantArray Constructors
The following are the constructors of the CMxVariantArray
class.
• CMxVariantArray Constructor int
CMxVariantArray Methods
The following are the methods of the CMxVariantArray
class.
• Set Method
• SetDataType Method
Set Method
Provides a method to set the value of the Attribute from a
CMxVariantArray.
Syntax
public void Set(CMxVariantArray newValue);
Parameter
newValue
[in] CMxVariantArray value to be set.
SetDataType Method
Provides a method to set the value of the MxDataType of the
Attribute.
Syntax
public void SetDataType(MxDataType dtype);
Parameter
dtype
[in] MxDataType value.
CMxBigString Class
CMxBigString is derived from CMxString and provides
support for BigString Attributes.
Syntax
public class CMxBigString : CMxString
CMxBigString Constructors
The following are the constructors of the CMxBigString class.
• CMxBigString Constructor
CMxBigString Constructor
Provides a default constructor.
Syntax
public CMxBigString();
CMxBigStringArray Class
CMxBigStringArray is derived from CMxStringArray and
provides support for BigString Array Attributes.
Syntax
public class CMxBigStringArray : CMxStringArray
CMxBigStringArray Constructors
The following are the constructors of the CMxBigStringArray
class.
• CMxBigStringArray Constructor int
Return Value
CMxBigStringArray
CMxInternalDumpLoadData Class
CMxInternalDumpLoadData class is derived from
CMxCustomStruct and provides support for dump/load at
Configtime.
Syntax
public class CMxInternalDumpLoadData : CMxCustomStruct
CMxInternalDumpLoadData Property
The following is the property of the
CMxInternalDumpLoadData class.
• StructID Property
StructID Property
Provides a property to indicate the struct ID for
CMxInternalDumpLoadData.
Syntax
public const int structId = 369875326;
Return Value
int
CMxInternalDumpLoadData Constructors
The following are the constructors of the
CMxInternalDumpLoadData class.
• CMxInternalDumpLoadData Constructor
• CMxInternalDumpLoadData Constructor
SupportWrapper, string
CMxInternalDumpLoadData Constructor
Provides a default constructor.
Syntax
public CMxInternalDumpLoadData();
CMxInternalDumpLoadData Constructor
SupportWrapper, string
Provides a constructor to initialize the class for use in a
primitive wrapper.
Syntax
public CMxInternalDumpLoadData(SupportWrapper _wrapper,
string _attributeRef);
Parameters
_wrapper
[in] SupportWrapper.
_attributeRef
[in] string value that holds the attribute reference.
CMxInternalFailoverData Class
CMxInternalFailoverData class is derived from
CMxCustomStruct and provides support for failover at
Runtime.
Syntax
public class CMxInternalFailoverData : CMxCustomStruct
CMxInternalFailoverData Property
The following is the property of the
CMxInternalFailoverData class.
• StructID Property
StructID Property
Provides a property to indicate the struct ID for
CMxInternalFailoverData.
Syntax
public const int structId = 369875325;
Return Value
int
CMxInternalFailoverData Constructors
The following are the constructors of the
CMxInternalFailoverData class.
• CMxInternalFailoverData Constructor
CMxInternalFailoverData Constructor
Provides a default constructor.
Syntax
public CMxInternalFailoverData ();
CMxInternalFailoverData Constructor
SupportWrapper, string
Provides a constructor to initialize the class for use in a
primitive wrapper.
Syntax
public CMxInternalFailoverData (SupportWrapper
_wrapper, string _attributeRef);
Parameters
_wrapper
[in] SupportWrapper
_attributeRef
[in] string value that holds the attribute reference.
CMxDataQuality Class
A wrapper class for handling MxDataQuality. Indicates the
data quality of an associated value as the OPC-compliant
data quality word.
Syntax
public class CMxDataQuality
Remarks
The high order byte is reserved by ArchestrA (do not use) as
allowed by the OPC specification.
CMxDataQuality Property
The following is the property of the CMxDataQuality class.
• Quality Property
Quality Property
Provides a property to store the quality as a short.
Syntax
public short quality;
Return Value
short
CMxDataQuality Constructors
The following are the constructors of the CMxDataQuality
class.
• CMxDataQuality Constructor
CMxDataQuality Constructor
Provides a constructor that creates a data quality with a
default initial value (bad).
Syntax
public CMxDataQuality();
CMxDataQuality Methods
The following are the methods of the CMxDataQuality class.
• IsBad Method
• IsGood Method
• IsInitializing Method
• IsUncertain Method
IsBad Method
Provides a method to check if the current quality is bad.
Syntax
public bool isBad { get; }
Return Value
bool
IsGood Method
Provides a method to check if the current quality is good.
Syntax
public bool isGood { get; }
Return Value
bool
IsInitializing Method
Provides a method to check if the current quality is
initializing.
Syntax
public bool isInitializing { get; }
Return Value
bool
IsUncertain Method
Provides a method to check if the current quality is
uncertain.
Syntax
public bool isUncertain { get; }
Return Value
bool
CMxIndirectBase Class
CMxIndirectBase is an inherited class that provides methods
and properties common to the two types of Indirects:
CMxIndirect and CMxIndirectWriteOnly.
Syntax
public class CMxIndirectBase
CMxIndirectBase Properties
The following are the properties of the CMxIndirectBase
class.
• Context Property
• FullReferenceString Property
• HasTimedOut Property
• RefHandle Property
• StatusId Property
• StatusIndex Property
• StatusOfLastWrite Property
• TimeOut Property
Context Property
The context that was used to create the indirect.
Syntax
public string Context { get; }
Return Value
string
FullReferenceString Property
The reference string that was used to create the
CMXIndirectBase instance.
Syntax
public string FullReferenceString { get; }
Return Value
string
HasTimedOut Property
Indirects contains a timer that tracks how long it
successfully connected to its remote attribute. If this time is
longer than the TimeOut value, then this property returns
true.
Syntax
public bool HasTimedOut { get; }
Return Value
bool
RefHandle Property
The RefHandle is the ArchestrA id for the reference bound to
this Indirect.
Syntax
public int RefHandle { get; }
Return Value
int
StatusId Property
The status of a write is written to a dynamic attribute array.
This is attribute id of the dynamic array.
Syntax
public short StatusId { get; }
Return Value
short
StatusIndex Property
The status of a write is written to a dynamic attribute array.
This is the index of the element of that array that this
indirect will write its status to.
Syntax
public int StatusIndex { get; }
Return Value
int
StatusOfLastWrite Property
This returns the status value of the last write attempt from
the dynamic attribute array.
A user can monitor this value to seen when a write has
completed, successfully or otherwise.
Syntax
public MxStatus StatusOfLastWrite { get; }
Return Value
MxStatus
TimeOut Property
Allows the user the set the TimeOut used by HasTimedOut.
Syntax
public TimeSpan TimeOut { get; set; }
Return Value
TimeSpan
CMxIndirectBase Constructor
The following is the constructor of the CMxIndirectBase
class.
• CMxIndirectBase Constructor string, string,
ArchestrA.Core.IMxSupervisoryConnection3, RuntimeBase,
int, short, int
CMxIndirectBase Methods
The following are the methods of the CMxIndirectBase class.
• Activate Method
• Activate Method(ArchestrA.MessageExchange.IMxCallback2)
• Set Method(CMxValue, DateTime)
• Suspend Method
• Suspend Method (ArchestrA.MessageExchange.IMxCallback2)
• Unbind Method
Activate Method
Activates a suspended indirect.
Syntax
public bool Activate();
Return Value
bool
Activate
Method(ArchestrA.MessageExchange.IMxCallback2)
Activates a suspended indirect and allows the user to supply
a callback variable.
Syntax
public bool
Activate(ArchestrA.MessageExchange.IMxCallback2
callback)
Parameter
callback
[in] The callback supplied by the user to be called when the
Activate has finished.
Return Value
bool
Suspend Method
Suspends an active indirect.
Syntax
public bool Suspend()
Return Value
bool
Suspend Method
(ArchestrA.MessageExchange.IMxCallback2)
Suspends an active indirect and allows the user to supply a
callback variable.
Syntax
public bool
Suspend(ArchestrA.MessageExchange.IMxCallback2
callback)
Parameter
callback
[in] The callback supplied by the user to be called when the
Suspend has finished.
Return Value
bool
Unbind Method
Unbinds the indirect, releasing the ArchestrA reference and
dynamic status array index.
Syntax
public void Unbind()
CMxIndirectWriteOnly Class
CMxIndirectWriteOnly is a support class that allows a user
to connect to an external attribute and write its value. This
type of indirect has less overhead than one that is readable
as well as writable.
Syntax
public class CMxIndirectWriteOnly : CMxIndirectBase
CMxIndirectWriteOnly Property
The following is the property of the CMxIndirectWriteOnly
class.
• Value Property
Value Property
Allows a user to set the value of the referenced attribute.
Syntax
public CMxValue Value { set; }
Return Value
CMxValue
CMxIndirectWriteOnly Constructor
The following is the constructor of the
CMxIndirectWriteOnly class.
• CMxIndirectWriteOnly Constructor string, string,
IMxSupervisoryConnection3, RuntimeBase, int, short, int
_superConn
[in] A supervisory connection to the runtime.
_rb
[in] handle to the RuntimeBase class instance that created
this indirect.
_refHandle
[in] The ArchestrA reference handle of the registered
reference.
_statusId
[in] The attribute id of the dynamic array that holds the
write status's.
_statusIndex
[in] The index of the element in the dynamic status array
that this reference uses.
CMxIndirect Class
CMxIndirect is a support class that allows a user to connect
to an external attribute and read/write its value.
Syntax
public class CMxIndirect : CMxIndirectBase
CMxIndirect Properties
The following are the properties of the CMxIndirect class.
• Value Property
• DataQualityOfLastRead Property
• StatusOfLastRead Property
• TestRead Property
• TimeStampOfLastRead Property
Value Property
Allows a user to read/write the value of the referenced
attribute.
Syntax
public CMxValue Value { get; set; }
Return Value
CMxValue
DataQualityOfLastRead Property
There are several methods that cause the value of the
referenced attribute to be read, that is, Value, TestRead but
they do not directly return the data quality. This property
contains the data quality of the last read attribute so that it
can be used.
Syntax
public CMxDataQuality DataQualityOfLastRead { get; }
Return Value
CMxDataQuality
StatusOfLastRead Property
There are several methods that cause the value of the
referenced attribute to be read, that is, Value, TestRead but
do not directly return the status. This property contains the
status of the last read so that it can be checked.
Syntax
public MxStatus StatusOfLastRead { get; }
Return Value
MxStatus
TestRead Property
TestRead performs a read check on the indirect but does not
return the value. It returns true if the status of the read was
successful. The data quality and full status can be accessed
by DataQualityOfLastRead and StatusOfLastRead.
Syntax
public bool TestRead { get; }
Return Value
bool
TimeStampOfLastRead Property
There are several methods that cause the value of the
referenced attribute to be read, that is, Value, TestRead but
do not directly return the timestamp. This property contains
the timestamp of the last read so that it can be used.
Syntax
DateTime TimeStampOfLastRead { get; }
Return Value
DateTime
CMxIndirect Constructor
The following is the constructor of the CMxIndirect class.
• CMxIndirect Constructor
string,string,IMxSupervisoryConnection3,RuntimeBase,
int,short,int
CMxIndirect Constructor
string,string,IMxSupervisoryConnection3,RuntimeBa
se, int,short,int
This is an internal constructor intended for use only in
BindTo.
Syntax
CMxIndirect(string _fullRefString, string _context,
IMxSupervisoryConnection3 _superConn, RuntimeBase
_rb, int _refHandle, short _statusId, int
_statusIndex)
Parameters
_fullRefString
[in] Full reference string of the attribute to bind to.
_context
[in] Context of the reference.
_superConn
[in] A supervisory connection to the runtime.
_rb
[in] handle to the RuntimeBase class instance that created
this indirect.
_refHandle
[in] The ArchestrA reference handle of the registered
reference.
_statusId
[in] The attribute id of the dynamic array that holds the
write status.
_statusIndex
[in] The index of the element in the dynamic status array
that this reference uses.
CMxIndirect Method
The following is the method of the CMxIndirect class.
• Get Method
Get Method
Provides a method to get the value, timestamp, and data
quality of the referenced attribute in a single operation.
Syntax
public bool Get(out CMxValue value, out DateTime
timeStamp, out CMxDataQuality quality);
Parameters
value
[out] the value of the reference attribute.
timestamp
[out] the timestamp of the reference attribute.
quality
[out] the data quality of the reference attribute.
Return Value
bool
Index
418, 422, 426, 433, 436, 439, 441, 443, DateTimeToVBFT method 288
450 DefaultValue property 322
CMxValue operator overloads 307 DefLength property 323
CMxValue properties 283 DefValue property 318
CMxValue, getting and setting 437 DeleteAttribute method 39, 86
CMxVariant class 434 DeletePrimitive method 39
CMxVariant constructor 434, 435 detail 273
CMxVariant constructors 434 detailedErrorCode member 268
CMxVariant methods 435 detectedBy 273
CMxVariant operator overload 436 DictionaryInstance property 14
CMxVariant operator overloads 436 documentation conventions 11
CMxVariant property 434 Double operator overload 308, 341, 344
CMxVariantArray class 436 Double value, getting and setting 342
CMxVariantArray constructor 437, 438 DynamicAttributeFailoverEnabled
CMxVariantArray constructors 437 property 59
CMxVariantArray methods 438
CMxVariantArray operator overload 439 E
CMxVariantArray operator ECALLCONTEXTFLAG 272
overloads 439 element, getting and setting 405
CMxVariantArray properties 437 Empty method 288
Compatible Interface classes 279 engineName 273
ConfigtimeBase attributes 44 Enumerations 270
ConfigtimeBase class 30 EnumOrdinal operator overload 309
ConfigtimeBase events 45 EnumText class 357
ConfigtimeBase methods 32 EnumText constructor 358
ConfigtimeBase properties 30 EnumText method 358
ConfigtimeDynamic event 46 EnumText property 357
ConfigtimeInitialize event 46 EPACKAGESTATUS 278
ConfigtimeMigrate event 46 EPRIMITIVEOPSTATUS 278
ConfigtimeSetHandlerEventArgs eStartingAfterDeployment 270
class 261 eStartingFromCheckpoint 270
ConfigtimeSetHandlerEventArgs eStartingFromStandby 270
constructor 261
ESTARTUPCONTEXT 270
ConfigtimeSetHandlerEventArgs
event arguments 259
member 261
ConfigtimeValidate event 47
Context property 452
F
FileTimeToDateTime method 289
conventions, documentation 11
Float operator overload 308, 334, 338
D FormatError method 17, 18
FullReferenceString property 452
Data 277
DataQuality 275
DataQuality operator overload 450
G
Get method 18, 19, 264, 461
DataQualityOfLastRead property 459
GetAttributeHandle method 19
DataType property 51, 53, 54, 246, 250,
253, 318 GetAttributeName method 87
DateTime operator overload 311, 426 GetAttributeProperties method 87, 88
DateTime, getting and setting 430 GetAttributeProperties method,
parameters and return value 89
DateTimeToFileTime method 288
GetBoolean method 90, 91, 92, 93, 94, GetInteger method 120, 121, 122, 294
290 GetInteger method, parameters and
GetBoolean method, parameters and return value 122
return value 94 GetIntegerArray method 295
GetBooleanArray method 290 GetIntegerArrayQ method 123, 124
GetBooleanArrayQ method 95 GetInternationalString method 295
GetClassID method 290 GetInternationalStrings method 295
GetCustomEnum method 96, 97, 98, 99, GetIsLocked method 19, 20
291 GetLocalizedText method 258
GetCustomEnum method, parameters GetLocked method 264
and return value 100
GetLockStatus method 124, 125
GetCustomEnumArray method 291
GetMxDataQuality method 295
GetCustomEnumArrayQ method 104
GetMxDataType method 125, 126, 127,
GetCustomEnumOrdinal method 291 128, 295
GetCustomEnumString method 292 GetMxDataType method, parameters and
GetCustomStruct method 100, 101, 102, return value 128
103, 292 GetMxDataTypeArray method 296
GetCustomStruct method, parameters GetMxDataTypeArrayQ method 129
and return value 103
GetMxReference method 296
GetCustomStructArray method 292
GetMxReferenceArrayAsStrings
GetCustomStructArrayQ method 105 method 296
GetCustomStructVB method 292 GetMxReferenceAsString method 296
GetData method 257 GetMxSecurityClassification method 296
GetDataFromFailoverField method 106 GetMxSecurityClassificationArray
GetDataType method 292 method 297
GetDefaultTimeStamp method 106 GetMxStatus method 130, 131, 132, 133,
GetDimensionCount method 293 297
GetDimensionSize method 293 GetMxStatus method, parameters and
GetDouble method 106, 107, 108, 109, return value 134
293 GetMxStatusArray method 297
GetDouble method, parameters and GetMxStatusArrayQ method 134, 135
return value 109 GetName method 20
GetDoubleArray method 293 GetNormalChildID method 135
GetDoubleArrayQ method 110 GetNumElements method 21
GetElapsedTime method 111, 112, 113, GetNumElementsEx method 136
293 GetObject method 365
GetElapsedTime method, 111 GetPrimitiveID method 21
GetElapsedTime method, parameters GetPrimitiveIds method 137
and return value 113
GetPrimitiveInfo method 137
GetElapsedTimeArray method 294
GetPrimitiveRuntimeSite2 method 137
GetElapsedTimeArrayQ method 114,
GetQ method 138
115
GetQuality method 138, 139
GetElement method 294
GetReference method 140, 141, 142, 143,
GetFloat method 115, 116, 117, 118, 294
144
GetFloat method, parameters and return
GetReference method, parameters and
value 118
return value 144
GetFloatArray method 294
GetReferenceArrayQ method 145
GetFloatArrayQ method 119
GetScanTime method 146
GetHeirarchialName method 39
GetSecurity method 264
W
welcome 11
WriteStatus property 248, 254
WriteTime property 248
WriteValue property 248