Skip to main content
Namespace: VM.Managed
Assembly: VMAppCore.dll
This class is to represent the objectbase.

Inheritance

object ← ObservableObject ← LinkableBase ← ObjectBase

Derived

Object<TEventCore>

Implements

IObservableObject, IDisposableObject, ILinkable, IObjectBase, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, IHasKeyObject, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable

Inherited Members

LinkableBase.OnDeserialization(object), ObservableObject.Dispose(), ObservableObject.RaisePropertyChanged(string), ObservableObject.RaisePropertyChanged(string, object, object), ObservableObject.Dispose(bool), ObservableObject.DisposeManagedResources(), ObservableObject.DisposeUnmanagedResources(), ObservableObject.IsDisposed, ObservableObject.TryDisposing, ObservableObject.Disposed, ObservableObject.Disposing, ObservableObject.PropertyChanged

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Constructors

ObjectBase()

Initializes a new instance of the ObjectBase class.

ObjectBase(SerializationInfo, StreamingContext)

Initializes a new instance of the ObjectBase class.

Parameters

info SerializationInfo The info. __unnamed001 StreamingContext

Properties

ClearChildInfoBeforeDeserialize

Gets a value indicating whether [clear child info before deserialize].

Property Value

bool

Container

Gets the container.

Property Value

IOwned

Document

Gets the document.

Property Value

Document

ID

Get the object id

Property Value

Identifier

IsChildExternable

Gets a value indicating whether this instance’s child is Externable.

Property Value

bool

IsExternable

Gets a value indicating whether this instance is Externable.

Property Value

bool

KernelKey

Gets the kernelkey.

Property Value

ObjectBase.ConvertKey

Key

Gets or sets the convertkey.

Property Value

ObjectBase.ConvertKey

KeyImpl

Property Value

UIntPtr

ObjectState

Gets the object state.

Property Value

ObjectStateType

ObjectStateForCircularError

Gets the object state for circular error.

Property Value

ObjectStateType

Owner

Gets the owner.

Property Value

ObjectBase

SkipModified

Gets or sets a value indicating whether [skip modified flag].

Property Value

bool

TopologyEntityTypeName

Get the object type name

Property Value

string

UntypedEventCore

Gets the untypedeventcore.

Property Value

ObjectEventCore

Methods

AddPostDeserialize(StreamingContext)

Add thi object to Post deserialize object list.

Parameters

context StreamingContext The StreamingContext.

Parameters

lstObj HashSet<ObjectBase>

ConnectProxy()

CreateEntityWhenUpdateContents(Action)

Parameters

action Action

CustomGetObjectData(SerializationInfo, StreamingContext)

Customize the GetObjectData function.

Parameters

info SerializationInfo The info. context StreamingContext The context.

DestroyObject(object, LinkEventArgs)

Destroy object.

Parameters

objNotifier object The event notifier. arg LinkEventArgs The event argument.

DestroyObject(DestroyEventArgs)

Destroy object.

Parameters

arg DestroyEventArgs The event argument.

DestroyObject()

Destroy object.

Dispose(bool)

Parameters

A_0 bool

DisposeManagedResources()

Dispose managed resources

DoWorkAfterUpdateContents()

After update contents, do work.

FindObjectOnXmlDeserialize(string)

Get object by fullname.

Parameters

strFullName string The fullname.

Returns

ObjectBase The Object.

FixUp(ObjectBase)

Before destroy the old object, perform a work.

Parameters

ob ObjectBase The old object.

Returns

bool true if success; otherwise, false.

GetArgumentList(LinkedList<ObjectBase>)

Parameters

lstObj LinkedList<ObjectBase>

GetDestroyEventExtraData()

Returns

object

GetObjectByKey(UIntPtr)

Get object by key.

Parameters

key UIntPtr The key.

Returns

ObjectBase The Object.

GetTargetListForUpdate()

Gets a updated objects.

Returns

List<IEventProvider>

Initialize(ConvertFactor)

Initializes member through unit convert factor.

Parameters

factor Unit.ConvertFactor The unit convert factor.

IsEqualArray<T>(T[], T[])

Equal two array

Parameters

arA T[] The array A. arB T[] The array B.

Returns

bool

Type Parameters

T

IsEqualList(List<double>, List<double>)

Parameters

lstA List<double> lstB List<double>

Returns

bool

IsSerializableEvent(Delegate)

Determines whether is [serializable event] [the specified delegate].

Parameters

del Delegate The delegate.

Returns

bool true if is [serializable event] [the specified delegate]; otherwise, false.

LinkAddedToDocument(object, AddToDocEventArgs)

Add linked object to a document.

Parameters

objNotifier object The linked object. arg AddToDocEventArgs The AddToDocEventArgs instance containing the event data.

LinkAddedToDocumentCore(IOwned, bool)

Parameters

owner IOwned bBackup bool

LinkRemovedFromDocument(object, RemoveFromDocEventArgs)

Remove linked object to a document.

Parameters

objNotifier object The linked object. arg RemoveFromDocEventArgs The AddToDocEventArgs instance containing the event data.

LinkRequestDestroy(object, LinkEventArgs)

Request for destroy the linked object.

Parameters

objNotifier object The linked object. arg LinkEventArgs The LinkEventArgs instance containing the event data.

LinkRequestDestroying(object, LinkEventArgs)

Request for destroying the linked object.

Parameters

objNotifier object The linked object. arg LinkEventArgs The LinkEventArgs instance containing the event data.

LinkRequestUpdate(object, LinkEventArgs)

Request for update the linked object.

Parameters

objNotifier object The linked object. arg LinkEventArgs The LinkEventArgs instance containing the event data.

LinkRequestUpdating(object, LinkEventArgs)

Request for updating the linked object.

Parameters

objNotifier object The linked object. arg LinkEventArgs The LinkEventArgs instance containing the event data.

OnDeserialization(object)

Called when [deserialization].

Parameters

sender object The sender.

Parameters

A_0 ILink A_1 object A_2 EventArgs

PostAddToDocument()

PostRemoveFromDocument(Document)

Parameters

document Document

RemoveFromCreatedList()

ReplaceEventCore(ObjectEventCore)

Replace event core.

Parameters

coreNew ObjectEventCore The object EventCore.

ResetInvalidEntity()

RollbackEvent()

SetContainer(IOwned, bool)

Parameters

obOwner IOwned bBackup bool

SetFlagWhenXMLFile(string, bool)

Set flag when property file open

Parameters

strFilePath string The file path. bValue bool The flag.

SetIconColor(Canvas)

Set color for icon.

Parameters

canvas Canvas The canvas.

SetModified(ModifiedType)

Called when object modified.

Parameters

type ModifiedResult.ModifiedType The modifed type.

SetModified()

Called when object modified.

SetModified(ModifiedType, IDocument)

Parameters

type ModifiedResult.ModifiedType doc IDocument

SetModifiedCore(ModifiedType)

Called when object modified.

Parameters

type ModifiedResult.ModifiedType The modified type

SetOldNameWithNewEntity(ObjectBase, ObjectBase)

Change for the new name.

Parameters

obNew ObjectBase The new object. obOld ObjectBase The old object.

SkipUpdateObjectImpl()

Skip the object that updated.

Returns

bool

UpdateContents(XmlReader, ObjectBase, string)

Update object.

Parameters

reader XmlReader The reader for object information. obOld ObjectBase The old object. strRootElement string The root element name.

Returns

ObjectBase The Object.

UpdateContents(XmlReader, ObjectBase)

Update object.

Parameters

reader XmlReader The reader for object information. obOld ObjectBase The old object.

Returns

ObjectBase The Object.

UpdateContents(string, string)

Update object.

Parameters

strXml string The xml for object information. strRootElement string The root element name.

Returns

ObjectBase The Object.

UpdateContents(string)

Update object.

Parameters

strXml string The xml for object information.

Returns

ObjectBase The Object.

Verify(VerifiedResult)

Verify.

Parameters

vr VerifiedResult The Verified result.

raise_Destroying(object, Identifier)

Parameters

sender object args Identifier

raise_OnAdded(object, AddToDocEventArgs)

Parameters

objNotifier object args AddToDocEventArgs

raise_OnContentsUpdated(object, EventArgs)

Parameters

value0 object value1 EventArgs

raise_OnDestroy(object, LinkEventArgs)

Parameters

objNotifier object args LinkEventArgs

raise_OnDestroying(object, LinkEventArgs)

Parameters

objNotifier object args LinkEventArgs

raise_OnRemoved(object, RemoveFromDocEventArgs)

Parameters

obj object args RemoveFromDocEventArgs

raise_OnUpdate(object, LinkEventArgs)

Parameters

objNotifier object args LinkEventArgs

raise_OnUpdating(object, LinkEventArgs)

Parameters

objNotifier object args LinkEventArgs

Destroying

Occurs when [on destroying].

Event Type

EventHandler<Identifier>

OnAdded

Occurs when [on add].

Event Type

EventHandler<AddToDocEventArgs>

OnContentsUpdated

Event Type

EventHandler

OnDestroy

Occurs when [on destroy].

Event Type

EventHandler<LinkEventArgs>

OnDestroying

Occurs when [on destroying].

Event Type

EventHandler<LinkEventArgs>

OnRemoved

Occurs when [on remove].

Event Type

EventHandler<RemoveFromDocEventArgs>

OnUpdate

Occurs when [on update].

Event Type

EventHandler<LinkEventArgs>

OnUpdating

Occurs when [on updating].

Event Type

EventHandler<LinkEventArgs>

Operators

implicit operator ObjectBase(UIntPtr)

Cast operator.

Parameters

key UIntPtr The key.

Returns

ObjectBase

implicit operator UIntPtr(ObjectBase)

Cast operator.

Parameters

ob ObjectBase The object.

Returns

UIntPtr