ReferenceTreeMFDynamicIdentifier Class

Dynamic MFIdentifier resolution object, resolves MFIdentfier via ReferenceTreeComplexReference's.

Definition

Namespace: MFiles.VAF.Common
Assembly: MFiles.VAF (in MFiles.VAF.dll) Version: 24.1.706.1
C#
public class MFDynamicIdentifier : MFIdentifier
Inheritance
Object    MFIdentifier    ReferenceTreeMFDynamicIdentifier

Constructors

Properties

Alias Alias string. Setting this will clear the resolved ID value.
(Inherited from MFIdentifier)
Empty Is this MFIdentifier empty == unset value. Use IsEmpty.
(Inherited from MFIdentifier)
Guid GUID if original string value was valid GUID, else empty string. AsOfNow the Alias will also return valid GUID, this might change in the future.
(Inherited from MFIdentifier)
GUID Alias for the Guid member.
(Inherited from MFIdentifier)
ID ID integer.
(Inherited from MFIdentifier)
IsEmpty Indicates if the identifier is not set, or set to empty.
(Inherited from MFIdentifier)
IsGuid Indicates if the set identifier is valid GUID format.
(Inherited from MFIdentifier)
IsIDAvailable Indicates if there is a valid ID value available (even if it wasn't resolved). Returns true if the id has been resolved, or if the identifier was set with an id or ObjID and the id isn't considered unresolved (-1).
(Inherited from MFIdentifier)
IsObjID Indicates if the identifier is valid ObjID format.
(Inherited from MFIdentifier)
IsObjVer Indicates if the identifier is valid ObjVer format.
(Inherited from MFIdentifier)
IsReference True when this object is a dynamic reference. False when the value is a non-lookup type.
IsResolved Indicates if the set identifier is already resolved.
(Inherited from MFIdentifier)
ObjID The ObjID of the item. Only relevant for ValueListItems and ObjIDs.
(Inherited from MFIdentifier)
Resolved Is this identifier is resolved to valid ID. Use IsResolved.
(Inherited from MFIdentifier)
ResolvedType The type which the identifier was resolved as. Null if the identifier is not resolved.
(Inherited from MFIdentifier)
UnresolvedID Value of unresolved ID used as "error-value" (for this structure type).
(Inherited from MFIdentifier)
UnsafeID Returns an ID value if available (even if it wasn't resolved). The ID is available if it has been resolved, or if the identifier was set with an id or ObjID and the id isn't considered unresolved (-1). It is unsafe because it hasn't necessary been resolved (verified to exist) in the current vault.
(Inherited from MFIdentifier)
ValueList The value list related to the resolved id (if relevant)
(Inherited from MFIdentifier)

Methods

_Resolve Internal resolving method.
(Inherited from MFIdentifier)
Equals(MFIdentifier) Equality of two MFIdentifiers. For resolved identifiers, type and ID must match. If either one is unresolved, aliases or original ids must match.
(Inherited from MFIdentifier)
Equals(Object) Equality with any other object.
(Inherited from MFIdentifier)
GetHashCode Get Hash Code.
(Inherited from MFIdentifier)
GetUnresolvedType
(Inherited from MFIdentifier)
Resolve(Vault, ObjVer, PropertyValues) Dynamic Type Resolver.
Resolve(Vault, Type, Boolean) Update this MFIdentifier to contain resolved ID of the alias, if it is not already resolved. Returns itself to allow command chaining.
(Inherited from MFIdentifier)
Resolve(Vault, Type, Int32, Boolean) Update this MFIdentifier to contain resolved ID of the alias, if it is not already resolved. Returns itself to allow command chaining.
(Inherited from MFIdentifier)
Set Helper function able to set the identifier value to almost any object type. Accepts MFIdentifier, string, int, enum, and other that cast to string. Returns itself to allow command chaining.
(Inherited from MFIdentifier)
SetAsID Indicates whether the MFIdentifier was intially set as an id. Allows serialization to match deserialized values, or to skip resolution.
(Inherited from MFIdentifier)
ShouldSerializeAlias Method deciding should we include Alias into serialization output. Yes when we have an alias.
(Inherited from MFIdentifier)
ShouldSerializeID Method deciding should we include ID into serialization output. Yes only when we dont have an alias.
(Inherited from MFIdentifier)
ToString Returns this instance of Alias value, if not avail, returns string of ID.
(Overrides MFIdentifierToString)

Operators

(ReferenceTreeMFDynamicIdentifier to MFDataType) Implicit conversion to MFDataType.

Fields

SetAs Internal information keeping track which type of value was set into this identifier.
(Inherited from MFIdentifier)
type Last used target type.
(Inherited from MFIdentifier)

See Also