确认指定的物件变数参考相同的物件。
Verifies that specified object variables refer to the same object.
您可以用物件变数缩短必须输入的程序码。
You can use object variables to shorten the code you have to type.
确认两个指定的物件变数参考不同的物件。
Verifies that two specified object variables refer to different objects.
确认两个指定的物件变数参考相同的物件。
Verifies that two specified object variables refer to the same object.
您可使用一般的指派陈述式来指派物件给物件变数。
You use a normal assignment statement to assign an object to an object variable.
这个动作也可以让您测试物件变数是否指向有效的物件,如下列范例所示。
It also allows you to test whether the object variable points to a valid object, as the following example shows.
它们不会比较两个物件的值,检查的目的只是判断两个物件变数是否参考同一个物件执行个体。
They do not compare the values of two objects; they check only to determine whether two object variables refer to the same object instance.
多个执行个体:物件变数在不同时间可有不同的指派类别执行个体,而且数个物件变数可同时参考同样的类别执行个体。
Multiple instances. An object variable can have different class instances assigned to it at different times, and several object variables can refer to the same class instance at the same time.
您也可以更新物件定义以使用变数,而不使用明确参考。
You can also update object definitions to use the variables instead of explicit references.
用户端程序码是使用这些变数呼叫方法并存取物件之公用属性的程序码。
Client code is the code that USES these variables to call the methods and access the public properties of the object.
参考会加入至资料库专案,您指定的那些物件和指令码则会修改为使用SETVAR变数,而不是使用伺服器和资料库名称。
The reference is added to the database project, and those objects and scripts that you specified are modified to use the SETVAR variables instead of the names of servers and databases.
为指定的全域变数取得值物件。
物件也称为执行个体,可以储存在已命名的变数、阵列或集合中。
Objects are also called instances, and they can be stored in either a named variable or in an array or collection.
如果你不适应物件、变数与所有其他的程序材料呢?放轻松!
But what if you're not comfortable with objects, variables, and all that other programming stuff?
另一种方式是将物件指定给样板,然后用取得其他指定变数值的方式取得物件。
The other way is to assign objects to the templates and access them much like any other assigned variable.
在这种情况下,不会将根物件做为成员或区域变数加入。
In this case, the root object is not also added as a member or local variable.
若要保留此物件的参照,请在您实作方案事件处理常式的类别中宣告私用变数。
To retain a reference to this object, declare a private variable in the class in which you implement the solution event handlers.
在以下范例中,资料型别从衍生类别转换为其基底类别,但转换后两变数所指向的物件并未变更。
In the following example, the data type is converted from the derived class to its base class, but the object that both variables now point to is unchanged.
您不需要建立可识别此专案中伺服器和资料库的变数,因为参考的资料库和伺服器物件永远位于同一个伺服器中。
You do not need to create variables that identify a server and a database in this project, because the database and the server objects that it references always reside on the same server.
您可将阵列变数变更为指向具有不同维度长度的阵列物件,但不可将它变更为指向不同资料型别的阵列物件。
You can change an array variable to point to an array object with different dimension lengths, but you cannot change it to point to an array object of a different data type.
两个参考相同物件的变数实际上是参考相同的物件执行个体。
Two variables that refer to the same object actually refer to the same instance of the object.
您可以在程式码执行时将变数变改为参考其他物件。
You can change a variable to refer to other objects while your code is running.
这也能够侦测在不支援变数的物件上所进行的方法呼叫。
It also catches calls to methods on objects that do not support them.
起初,借由传值传递的变数来修改参考的物件可能并不明显。
At first it may not be obvious that you can modify an object referred to by a variable that is passed by value.
起初,借由传值传递的变数来修改参考的物件可能并不明显。
At first it may not be obvious that you can modify an object referred to by a variable that is passed by value.
应用推荐