GitHub    Download    Forum
Overview
Tutorial
C++ API
C# API
General interfaces
Data interfaces
UDomain
UStorage
UObject
AddClass
ClassAddRef
ClassRelease
Close
GetArray
GetAvailableAttributes
GetBsob
GetId
GetLastError
GetLastWriteTime
GetList
GetObjectLink
GetObjectLinkArray
GetValue
HasAttribute
IsAvailableLoaded
IsDirty
Load
LoadFiltered
Remove
SetArray
SetBsob
SetDirty
SetLastError
SetList
SetObjectLink
SetObjectLinkArray
SetValue
Store
Unload
UList
UBitFlagSet
UBitFlagSetSingle
WDomain
WObject
IEventClient
Schema interfaces
Configuration interfaces
Structures
Error codes
DTDL
DADL
Setup

UObject.SetObjectLink

Sets an ObjectLink attribute.

Syntax

int SetObjectLink(
UInt64 p_ullFullAttributeId,
stcObjectLink p_polObjectLink
);
 
int SetObjectLink(
UInt64 p_ullFullAttributeId,
ObjectId p_poiObjectId,
UInt32[] p_aulClassId
);

Parameter

p_ullFullAttributeId
Type: UInt64
Identifier of the attribute.
p_polObjectLink
Type: stcObjectLink
ObjectLink to set.
p_poiObjectId
Type: ObjectId
ObjectId of the ObjectLink to set.
p_aulClassId
Type: UInt32[]
Class list of the ObjectLink to set.

Return value

S_OK if the function succeeds.
E_OBJECT_NOTLOADED if the object has not been opened.
E_OBJECT_CLASSNOTFOUND if the object does not contain the class of the requested attribute.
© 2022 Mobiland AG