ActivationObject.GetMemberValue(String, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the value of the specified member by searching the scope hierarchy. This method searches only the scope that is specified by the lexical level.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
virtual System::Object ^ GetMemberValue(System::String ^ name, int lexlevel);
public object GetMemberValue (string name, int lexlevel);
override this.GetMemberValue : string * int -> obj
abstract member GetMemberValue : string * int -> obj
override this.GetMemberValue : string * int -> obj
Public Function GetMemberValue (name As String, lexlevel As Integer) As Object
Parameters
- name
- String
The name of the member to search for.
- lexlevel
- Int32
The lexical level to search.
Returns
The value of the member name
.
Implements
Remarks
This method applies to members that cannot be resolved at compile time. This occurs when an eval
expression refers to a member in the outer scope. Because the eval
expression can declare a local member that has the same name as a member in the outer scope, the member cannot be early bound to the outer scope member.
Applies to
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈