Persistate API documentation
ToMetaReference Method (environmentRelative)

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

Creates an environment relative MetaReference referring to this object, if possible.
Declaration Syntax
public MetaReference ToMetaReference(
	bool environmentRelative
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.

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.

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

Assembly: Persistate (Module: Persistate) Version: (