sdk
latest
false
UiPath logo, featuring letters U and I in white

Developer guide

Last updated Mar 30, 2026

UiPath.Studio.Activities.Api.ObjectLibrary

In this section you can find more information on how to build activities using UiPath.Studio.Activities.Api.ObjectLibrary.

ActivityCreationObjectData

Note:

This feature was introduced in UiPath.Studio.Activities.Api v22.4.

Model that is used by the Object Repository for interaction with IActivityFactoryRepository. The model is available for RegisterArgs.FactoryV3 and later.

Properties

TypeNameDescription
stringIdThe source ID.
stringReferenceThe object reference.

IContentComputeArgs

Note:

This feature was introduced in UiPath.Studio.Activities.Api v21.4.

Properties

TypeNameDescription
stringSourceIdSource ID
stringObjectReferenceObject reference
stringContentNameContent name

IContentDescription

Note:

This feature was introduced in UiPath.Studio.Activities.Api v20.4.

Content handler interface.

Properties

TypeNameDescription
stringContentNameContent name.
stringDisplayNameLocalized display name.
stringDescriptionLocalized description.
stringDisplayColorContent color (for the edit object buttons).
byte[]IconContent icon.
stringSelectionNameSelection name corresponding to this content registered using IObjectSelectionDescription.
Func<IContentEditArgs, Task<bool?>>OnEditEdit handler.
Func<IContentHighlightArgs, Task>OnHighlightEnables functionality to highlight the element in the target application.
boolNeedsParentValidationIf set to true it specifies that this content needs a specific parent on add and move operations.

Methods

void RegisterParentValidation(Action setter)

Used to validate parent objects on add and move when NeedsParentValidation is true.

Parameter TypeParameter NameDescription
Actionsetter

IContentEditArgs

Note:

This feature was introduced in UiPath.Studio.Activities.Api v20.4.

Properties

TypeNameDescription
stringSourceIdSource ID
stringObjectReferenceObject reference
stringContentNameContent name

IContentHighlightArgs

Note:

This feature was introduced in UiPath.Studio.Activities.Api v21.4.

Properties

TypeNameDescription
stringSourceIdSource ID
stringObjectReferenceObject reference
stringContentNameContent name

IContentOperations

Note:

This feature was introduced in UiPath.Studio.Activities.Api v20.4.

Designer operations API.

Methods

void RegisterContent(Action setter)

Registers a content handler for a specific content name

Parameter TypeParameter Name
Actionsetter
void RegisterObjectSelection(Actionsetter)

Registers a handler for indicating objects.

Parameter TypeParameter Name
Actionsetter

ILibraryService

Note:

This feature was introduced in UiPath.Studio.Activities.Api v20.4.

API for manipulating library objects.

Properties

TypeNameDescription
IContentOperationsContent
IObjectOperationsObjects
boolDesignTimeEnforcedIf set to true, the use of objects from the Object Repository is enforced.

IObjectCreateCriteria

Note:

This feature was introduced in UiPath.Studio.Activities.Api v20.4.

Properties

TypeName
stringSourceId
stringObjectRef
stringParentRef
stringName
stringDescription
stringType
stringTaxonomyType
IReadOnlyList<string>Content
IReadOnlyList<byte[]>Images

IObjectDragArgs

Note:

This feature was introduced in UiPath.Studio.Activities.Api v20.4.

Properties

TypeName
stringObjectType
IReadOnlyList<string>Content

IObjectOperations

Note:

This feature was introduced in UiPath.Studio.Activities.Api v20.4.

Methods

Task<IObjectCreateCriteria> ShowCreateWindow(Action<IObjectCreateCriteria> criteriaSetter)
Parameter TypeParameter Name
ActioncriteriaSetter
void InvokeOnSourcesChanged(Action handler)
Parameter TypeParameter Name
Actionhandler
void InvokeOnBeginDrag(Action handler);
Parameter TypeParameter Name
Actionhandler
void InvokeOnEndDrag(Action handler)
Parameter TypeParameter Name
Actionhandler
void NotifyObjectChanged(string sourceId, string objectReference)
Parameter TypeParameter Name
stringsourceId
stringobjectReference
IDisposable BeginEdit(string sourceId, IReadOnlyList<string> objectReferences)
Parameter TypeParameter Name
stringsourceId
IReadOnlyList<string>objectReferences
Task<IDisposable> BeginEditAsync(string sourceId, IReadOnlyList<string> objectReferences)
Parameter TypeParameter Name
stringsourceId
IReadOnlyList<string>objectReferences
void Focus(string sourceId, string objectReference)
Parameter TypeParameter Name
stringsourceId
stringobjectReference
Task<bool?> ShowReuseObjectDialog(string objectReference, bool addingToLibrary)
Parameter TypeParameter Name
stringobjectReference
booladdingToLibrary
Task<bool?> ShowEditLinkedObjectDialog(string objectReference, bool isReindicating)
Parameter TypeParameter Name
stringobjectReference
boolisReindicating

IObjectRestriction

Note:

This feature was introduced in UiPath.Studio.Activities.Api v20.4.

Properties

TypeNameDescription
stringObjectTypeThe type of object this restriction applies to. If null, it applies to all.
IReadOnlyList<string>RequiredContentUsed to validate if the object contains one of the specified content names.

IObjectSelectionDescription

Note:

This feature was introduced in UiPath.Studio.Activities.Api v21.4.

Allows indicating on screen from an Object Repository object.

Properties

TypeNameDescription
stringSelectionNameSelection name.
stringDisplayNameLocalized display name for the Indicate button.
stringDescriptionLocalized description.
stringDisplayColorContent color for the Edit Object buttons.
byte[]IconContent icon.
stringRecordDisplayNameLocalized display name for the Record button.
boolSupportsObjectRecorderHighlightReturns true if element highlighting is supported. Requires Studio 2021.10 or later.
boolSupportsObjectRecorderCurrentElementsReturns true if elements are listed during recording. Requires Studio 2021.10 or later.
IReadOnlyList<string>SupportedObjectTypesReturns a list of objects that can be recorded.
Func<ISelectionArgs, Task<bool?>>OnIndicateAllows the injection of a function that can be called when Indicate on screen was clicked.
FuncGetObjectRecorderFactoryReturns the function that allows the recording of objects from the Object Repository.
FuncGetAutoCaptureElementsFactoryReturns the function that allows triggering the Capture All feature from the Object Repository. Requires Studio 2021.10 or later.

IObjectSource

Note:

This feature was introduced in UiPath.Studio.Activities.Api v20.4.

Properties

TypeName
stringId
stringUrl
boolCanWrite

ISelectionArgs

Note:

This feature was introduced in UiPath.Studio.Activities.Api v21.4.

Properties

TypeName
stringSourceId
stringObjectReference
stringSelectionName

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated