There is no such concept as "return a value from class", simply it can mean just about anything. You can return a value only from a function.
There are two ways of doing that.
Fist one is using a data type encapsulating two or more values. It could be a class or a structure.
The second way is using
out
parameter. This feature is not implemented in VB.NET, but you can use passing parameters by reference, like in this example:
Private Function GetCustomerData(ByRef index As Integer, ByRef message As String) As Boolean
index = 13
message = "message"
Return True
End Function
In this sample, you return three different parameters of three different type. The Boolean parameters is returned on stack, and the other two are "populated in-place" by the references passed in the function.
—SA