UnknownWrapper UnknownWrapper UnknownWrapper UnknownWrapper Class

Definición

Advertencia

Esta API está ya obsoleta.

Ajusta los objetos que el contador de referencias debe calcular referencias como un VT_UNKNOWN.Wraps objects the marshaler should marshal as a VT_UNKNOWN.

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

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

Propiedades

WrappedObject WrappedObject WrappedObject WrappedObject

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

Métodos

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
ToString() ToString() ToString() ToString()

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

(Inherited from Object)

Se aplica a