| ISharedObjectsPublishSharedObject Method |
Any component may publish objects to be shared by calling this method.
The object will be added to the available shared objects, and the
SharedObjectPublished
event will be raised.
Namespace: Sdl.FileTypeSupport.Framework.NativeApiAssembly: Sdl.FileTypeSupport.Framework.Core (in Sdl.FileTypeSupport.Framework.Core.dll) Version: 1.0.0.0 (1.0.2343.0)
Syntaxvoid PublishSharedObject(
string id,
Object toBeShared,
IdConflictResolution conflictingIdResolution
)
Sub PublishSharedObject (
id As String,
toBeShared As Object,
conflictingIdResolution As IdConflictResolution
)
void PublishSharedObject(
String^ id,
Object^ toBeShared,
IdConflictResolution conflictingIdResolution
)
abstract PublishSharedObject :
id : string *
toBeShared : Object *
conflictingIdResolution : IdConflictResolution -> unit
Parameters
- id
- Type: SystemString
Unique identifier for the object to be shared. If an object with this id is already
shared, the conflict resolution parameter determines what happens. - toBeShared
- Type: SystemObject
May be null, which can be used to "remove" a shared object from the
collection. (Note that the component may still hold a reference to the old instance.) - conflictingIdResolution
- Type: Sdl.FileTypeSupport.Framework.NativeApiIdConflictResolution
Indicates what should happen if an object with the
same id is already shared.
See Also
Comments