Name
CObj Function
Synopsis
CObj(expression
)
expression
required; anyExpression to be converted to type Object
Named Arguments
No
Return Value
expression
cast as an Object data type
Description
Converts any expression that can be interpreted as an object to
Object. expression
can be any data type,
including a strongly typed object, as the following code fragment
illustrates:
Dim oSomeClass As New CSomeClass Dim oObj As Object oObj = CObj(oSomeClass)
Get VB.NET Language Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.