共用方式為


PrivateObject Class

Definition

This class represents the live NON public INTERNAL object in the system

public ref class PrivateObject
public class PrivateObject
type PrivateObject = class
Public Class PrivateObject
Inheritance
PrivateObject

Constructors

PrivateObject(Object, PrivateType)

Initializes a new instance of the PrivateObject class that wraps the given object.

PrivateObject(Object, String)

Initializes a new instance of the PrivateObject class that contains the already existing object of the private class

PrivateObject(Object)

Initializes a new instance of the PrivateObject class that wraps the given object.

PrivateObject(String, String, Object[])

Initializes a new instance of the PrivateObject class that wraps the specified type.

PrivateObject(String, String, Type[], Object[])

Initializes a new instance of the PrivateObject class that wraps the specified type.

PrivateObject(Type, Object[])

Initializes a new instance of the PrivateObject class that wraps the specified type.

PrivateObject(Type, Type[], Object[])

Initializes a new instance of the PrivateObject class that wraps the specified type.

Properties

RealType

Gets the type of underlying object

Target

Gets or sets the target

Methods

Equals(Object)

Equals

GetArrayElement(String, BindingFlags, Int32[])

Gets the array element using array of subscripts for each dimension

GetArrayElement(String, Int32[])

Gets the array element using array of subscripts for each dimension

GetField(String, BindingFlags)

Gets the field

GetField(String)

Get the field

GetFieldOrProperty(String, BindingFlags)

Gets the field or property

GetFieldOrProperty(String)

Get the field or property

GetHashCode()

returns the hash code of the target object

GetProperty(String, BindingFlags, Object[])

Gets the property

GetProperty(String, BindingFlags, Type[], Object[])

Gets the property

GetProperty(String, Object[])

Gets the property

GetProperty(String, Type[], Object[])

Gets the property

Invoke(String, BindingFlags, Object[], CultureInfo)

Invokes the specified method

Invoke(String, BindingFlags, Object[])

Invokes the specified method

Invoke(String, BindingFlags, Type[], Object[], CultureInfo, Type[])

Invokes the specified method

Invoke(String, BindingFlags, Type[], Object[], CultureInfo)

Invokes the specified method

Invoke(String, BindingFlags, Type[], Object[])

Invokes the specified method

Invoke(String, Object[], CultureInfo)

Invokes the specified method

Invoke(String, Object[])

Invokes the specified method

Invoke(String, Type[], Object[], CultureInfo)

Invokes the specified method

Invoke(String, Type[], Object[], Type[])

Invokes the specified method

Invoke(String, Type[], Object[])

Invokes the specified method

SetArrayElement(String, BindingFlags, Object, Int32[])

Sets the array element using array of subscripts for each dimension

SetArrayElement(String, Object, Int32[])

Sets the array element using array of subscripts for each dimension

SetField(String, BindingFlags, Object)

Sets the field

SetField(String, Object)

Sets the field

SetFieldOrProperty(String, BindingFlags, Object)

Sets the field or property

SetFieldOrProperty(String, Object)

Sets the field or property

SetProperty(String, BindingFlags, Object, Object[])

Sets the property

SetProperty(String, BindingFlags, Object, Type[], Object[])

Sets the property

SetProperty(String, Object, Object[])

Set the property

SetProperty(String, Type[], Object, Object[])

Set the property

Applies to