Догађаји
Изградите интелигентне апликације
17. мар 21 - 21. мар 10
Придружите се серији састанака како бисте изградили скалабилна АИ решења заснована на стварним случајевима коришћења са колегама програмерима и стручњацима.
Региструјте се одмахОвај прегледач више није подржан.
Надоградите на Microsoft Edge бисте искористили најновије функције, безбедносне исправке и техничку подршку.
Compares two object reference variables.
result = object1 Is object2
result
Required. Any Boolean
value.
object1
Required. Any Object
name.
object2
Required. Any Object
name.
The Is
operator determines if two object references refer to the same object. However, it does not perform value comparisons. If object1
and object2
both refer to the exact same object instance, result
is True
; if they do not, result
is False
.
Напомена
The Is
keyword is also used in the Select...Case Statement.
The following example uses the Is
operator to compare pairs of object references. The results are assigned to a Boolean
value representing whether the two objects are identical.
Dim myObject As New Object
Dim otherObject As New Object
Dim yourObject, thisObject, thatObject As Object
Dim myCheck As Boolean
yourObject = myObject
thisObject = myObject
thatObject = otherObject
' The following statement sets myCheck to True.
myCheck = yourObject Is thisObject
' The following statement sets myCheck to False.
myCheck = thatObject Is thisObject
' The following statement sets myCheck to False.
myCheck = myObject Is thatObject
thatObject = myObject
' The following statement sets myCheck to True.
myCheck = thisObject Is thatObject
As the preceding example demonstrates, you can use the Is
operator to test both early bound and late bound objects.
Is
operator can also be used with the TypeOf
keyword to make a TypeOf
...Is
expression, which tests whether an object variable is compatible with a data type. For example:
If TypeOf sender Is Button Then
.NET повратне информације
.NET је пројекат отвореног кода. Изаберите везу да бисте обезбедили повратне информације:
Догађаји
Изградите интелигентне апликације
17. мар 21 - 21. мар 10
Придружите се серији састанака како бисте изградили скалабилна АИ решења заснована на стварним случајевима коришћења са колегама програмерима и стручњацима.
Региструјте се одмах