Persistate API documentation
ToMetaReference Method (environmentRelative)
NamespacesPersistatePersistentToMetaReference(Boolean)

[This is preliminary documentation and is subject to change.]

Creates an environment relative MetaReference referring to this object, if possible.
Declaration Syntax
C#
public MetaReference ToMetaReference(
	bool environmentRelative
)
Parameters
environmentRelative (Boolean)
If true, and this object is contained within an environment at some level, then the MetaReference will be relative to the local domain and current environment when dereferenced.
Return Value
The created MetaReference.
Remarks

for this to work, this object must be in a derived class which implements IMetaReferable.

The MetaReference can contain an arbitrary number of name sections, depending on the depth of nesting of this object in the containment hierarchy.

Exceptions
ExceptionCondition
NotSupportedExceptionThrown if the class of this object does not implement IMetaReferable.

Assembly: Persistate (Module: Persistate) Version: 0.6.1.20 (0.6.1.20)