({{, (RefLink[ManagedLibraryExpressionQ, paclet:ref/ManagedLibraryExpressionQ])[expr] 
returns (RefLink[True, paclet:ref/True]) if expr is a managed library expression and (RefLink[False, paclet:ref/False]) otherwise.}, {, (RefLink[ManagedLibraryExpressionQ, paclet:ref/ManagedLibraryExpressionQ])[expr,mname]
only returns (RefLink[True, paclet:ref/True]) if expr is associated with the registered manager having name mname.}})

OpenersNotesSection(Spacer1)Details

A managed library expression is created with (RefLink[CreateManagedLibraryExpression, paclet:ref/CreateManagedLibraryExpression]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Load example (RefLink[LibraryFunction, paclet:ref/LibraryFunction]) objects that implement a simple linear congruential random generator:

setInstanceState = LibraryFunctionLoad["demo_managed","setInstanceState",{Integer, {Integer, 1}},"Void"];
generateFromInstance = LibraryFunctionLoad["demo_managed", "generateFromInstance",{Integer,{Integer, _}},{Real,_}];

Create an instance of a linear congruential generator:

g1=CreateManagedLibraryExpression["LCG",randomLCG]

Check if it is a managed library expression:

ManagedLibraryExpressionQ[g1]

LibraryFunctionUnload[generateFromInstance]
LibraryFunctionUnload[setInstanceState]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[CreateManagedLibraryExpression, paclet:ref/CreateManagedLibraryExpression])  ▪  (RefLink[ManagedLibraryExpressionID, paclet:ref/ManagedLibraryExpressionID])  ▪  (RefLink[LibraryFunction, paclet:ref/LibraryFunction])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[LibraryLink User Guide, paclet:LibraryLink/tutorial/Overview])}, {▪(RefLinkPlain[Managed Library Expressions, paclet:LibraryLink/tutorial/InteractionWithWolframLanguage#353220453])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Wolfram LibraryLink, paclet:guide/LibraryLink])}})}})