ScriptObject.WrapMembers Method

Definition

Creates wrapped objects. Each wrapped object contains the information for one member (field, property, or method), together with a copy of the instantiated object that the member is defined on. This enables other objects that do not contain the member to store it and then return its value as if it were their own.

Overloads

WrapMembers(MemberInfo, Object)

This API supports the product infrastructure and is not intended to be used directly from your code.

Creates a wrapped object that contains the specified member together with the specified object.

WrapMembers(MemberInfo[], Object)

This API supports the product infrastructure and is not intended to be used directly from your code.

Creates an array of wrapped objects that contain the specified members together with the specified object.

WrapMembers(MemberInfo[], Object, SimpleHashtable)

This API supports the product infrastructure and is not intended to be used directly from your code.

Creates an array of wrapped objects that contain the specified members together with the specified object, caching the results in the specified data storage.

WrapMembers(MemberInfo, Object)

Creates a wrapped object that contains the specified member together with the specified object.

This API supports the product infrastructure and is not intended to be used directly from your code.

protected:
 static cli::array <System::Reflection::MemberInfo ^> ^ WrapMembers(System::Reflection::MemberInfo ^ member, System::Object ^ obj);
protected static System.Reflection.MemberInfo[] WrapMembers (System.Reflection.MemberInfo member, object obj);
static member WrapMembers : System.Reflection.MemberInfo * obj -> System.Reflection.MemberInfo[]
Protected Shared Function WrapMembers (member As MemberInfo, obj As Object) As MemberInfo()

Parameters

member
MemberInfo

The member to wrap.

obj
Object

The object that member is defined on.

Returns

A one-element array that has a wrapped object that contains the member information and obj.

Remarks

This method enables other objects that do not contain the member to store it and then return its value as if it were their own.

See also

Applies to

WrapMembers(MemberInfo[], Object)

Creates an array of wrapped objects that contain the specified members together with the specified object.

This API supports the product infrastructure and is not intended to be used directly from your code.

protected:
 static cli::array <System::Reflection::MemberInfo ^> ^ WrapMembers(cli::array <System::Reflection::MemberInfo ^> ^ members, System::Object ^ obj);
protected static System.Reflection.MemberInfo[] WrapMembers (System.Reflection.MemberInfo[] members, object obj);
static member WrapMembers : System.Reflection.MemberInfo[] * obj -> System.Reflection.MemberInfo[]
Protected Shared Function WrapMembers (members As MemberInfo(), obj As Object) As MemberInfo()

Parameters

members
MemberInfo[]

The members to wrap.

obj
Object

The object that members are defined on.

Returns

An array of wrapped objects, each of which contains member information and a copy of obj.

Remarks

This method enables other objects that do not contain these members to store them and then return their values as if they were their own.

See also

Applies to

WrapMembers(MemberInfo[], Object, SimpleHashtable)

Creates an array of wrapped objects that contain the specified members together with the specified object, caching the results in the specified data storage.

This API supports the product infrastructure and is not intended to be used directly from your code.

protected:
 static cli::array <System::Reflection::MemberInfo ^> ^ WrapMembers(cli::array <System::Reflection::MemberInfo ^> ^ members, System::Object ^ obj, Microsoft::JScript::SimpleHashtable ^ cache);
protected static System.Reflection.MemberInfo[] WrapMembers (System.Reflection.MemberInfo[] members, object obj, Microsoft.JScript.SimpleHashtable cache);
static member WrapMembers : System.Reflection.MemberInfo[] * obj * Microsoft.JScript.SimpleHashtable -> System.Reflection.MemberInfo[]
Protected Shared Function WrapMembers (members As MemberInfo(), obj As Object, cache As SimpleHashtable) As MemberInfo()

Parameters

members
MemberInfo[]

The members to wrap.

obj
Object

The object that members are defined on.

cache
SimpleHashtable

Temporary data storage for the wrapped objects.

Returns

An array of wrapped objects, each of which contains member information and a copy of obj.

Remarks

This method enables other objects that do not contain these members to store them and then return their values as if they were their own.

See also

Applies to