Open sandboxFocus

Method QueryObject

QueryObject(object)

Gets the principal object of an advice.

Declaration
public static object QueryObject(object obj)
Parameters
Type Name Description
object obj

An object or a dynamic advice.

Returns
Type Description
object

The AdvisedObject is obj is a dynamic advice, otherwise obj itself.