UnknownWrapper Clase

Definición

Precaución

UnknownWrapper and support for marshalling to the VARIANT type may be unavailable in future releases.

Encapsula los objetos cuyas referencias se van a calcular como VT_UNKNOWN.Wraps objects the marshaler should marshal as a VT_UNKNOWN.

public ref class UnknownWrapper sealed
public sealed class UnknownWrapper
[System.Obsolete("UnknownWrapper and support for marshalling to the VARIANT type may be unavailable in future releases.")]
public sealed class UnknownWrapper
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public sealed class UnknownWrapper
type UnknownWrapper = class
[<System.Obsolete("UnknownWrapper and support for marshalling to the VARIANT type may be unavailable in future releases.")>]
type UnknownWrapper = class
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type UnknownWrapper = class
Public NotInheritable Class UnknownWrapper
Herencia
UnknownWrapper
Atributos

Comentarios

Solo se aplica cuando la firma administrada de un método toma un objeto.Only applies when the managed signature of a method takes an object.

int MyMethod(Object o); //Managed signature  
    HRESULT MyMethod(VARIANT o); //COM signature  
    MyObject o = new MyObject();  
    MyMethod(o); //o gets passed as VARIANT VT_DISPATCH  
    MyMethod(new UnknownWrapper(o)); //o gets passed as VARIANT VT_UNKNOWN  

Constructores

UnknownWrapper(Object)

Inicializa una nueva instancia de la clase UnknownWrapper con el objeto que se va a incluir en el contenedor.Initializes a new instance of the UnknownWrapper class with the object to be wrapped.

Propiedades

WrappedObject

Obtiene el objeto incluido en este contenedor.Gets the object contained by this wrapper.

Métodos

Equals(Object)

Determina si el objeto especificado es igual que el objeto actual.Determines whether the specified object is equal to the current object.

(Heredado de Object)
GetHashCode()

Sirve como la función hash predeterminada.Serves as the default hash function.

(Heredado de Object)
GetType()

Obtiene el Type de la instancia actual.Gets the Type of the current instance.

(Heredado de Object)
MemberwiseClone()

Crea una copia superficial del Object actual.Creates a shallow copy of the current Object.

(Heredado de Object)
ToString()

Devuelve una cadena que representa el objeto actual.Returns a string that represents the current object.

(Heredado de Object)

Se aplica a