Interface ISupportsPersistenceId
Provides access to an internal ID that can be used temporarily by implementations e.g. to persist an object graph.
Namespace: SdlSdl.FileTypeSupportFrameworkNativeApi
Assembly: Sdl.FileTypeSupport.Framework.Core.dll
Syntax
public interface ISupportsPersistenceId
Remarks
Objects acting as data containers in the framework may implement this interface, even if it is not declared as part of the API. Implementations can cast to this interface to determine if an implementation object supports it.
Properties
PersistenceId
The persistence ID associated with an object may be used by implementations during operations such as serialization and de-serialization of the object model.
Declaration
int PersistenceId { get; set; }
Property Value
Type | Description |
---|---|
int |
Remarks
The persistence ID is an internal ID that may be used temporarily. It is not guaranteed to be preserved during regular processing by other components, and it is explicitly ignored in the object implementations of Equals(object) and GetHashCode().
The initial value of this ID is 0 for all objects. It is up to implementations to ensure uniqueness, if that is desired.