ManagementObject ManagementObject ManagementObject ManagementObject Class

Definición

Representa una instancia WMI.Represents a WMI instance.

public ref class ManagementObject : System::Management::ManagementBaseObject, ICloneable
[System.Serializable]
public class ManagementObject : System.Management.ManagementBaseObject, ICloneable
type ManagementObject = class
    inherit ManagementBaseObject
    interface ICloneable
Public Class ManagementObject
Inherits ManagementBaseObject
Implements ICloneable
Herencia
Derivado
Atributos
Implementaciones

Constructores

ManagementObject() ManagementObject() ManagementObject() ManagementObject()

Inicializa una nueva instancia de la clase ManagementObject.Initializes a new instance of the ManagementObject class. Éste es el constructor predeterminado.This is the default constructor.

ManagementObject(ManagementPath) ManagementObject(ManagementPath) ManagementObject(ManagementPath) ManagementObject(ManagementPath)

Inicializa una nueva instancia de la clase ManagementObject para la ruta de acceso al objeto WMI especificada.Initializes a new instance of the ManagementObject class for the specified WMI object path. La ruta de acceso se proporciona como ManagementPath.The path is provided as a ManagementPath.

ManagementObject(ManagementPath, ObjectGetOptions) ManagementObject(ManagementPath, ObjectGetOptions) ManagementObject(ManagementPath, ObjectGetOptions) ManagementObject(ManagementPath, ObjectGetOptions)

Inicializa una nueva instancia de la clase ManagementObject enlazada a la ruta de acceso WMI especificada, incluidas las opciones adicionales especificadas.Initializes a new instance of the ManagementObject class bound to the specified WMI path, including the specified additional options.

ManagementObject(ManagementScope, ManagementPath, ObjectGetOptions) ManagementObject(ManagementScope, ManagementPath, ObjectGetOptions) ManagementObject(ManagementScope, ManagementPath, ObjectGetOptions) ManagementObject(ManagementScope, ManagementPath, ObjectGetOptions)

Inicializa una nueva instancia de la clase ManagementObject enlazada a la ruta de acceso WMI especificada que incluye las opciones especificadas.Initializes a new instance of the ManagementObject class bound to the specified WMI path that includes the specified options.

ManagementObject(SerializationInfo, StreamingContext) ManagementObject(SerializationInfo, StreamingContext) ManagementObject(SerializationInfo, StreamingContext) ManagementObject(SerializationInfo, StreamingContext)

Inicializa una nueva instancia de la clase ManagementObject que es serializable.Initializes a new instance of the ManagementObject class that is serializable.

ManagementObject(String) ManagementObject(String) ManagementObject(String) ManagementObject(String)

Inicializa una nueva instancia de la clase ManagementObject para la ruta de acceso al objeto WMI especificada.Initializes a new instance of the ManagementObject class for the specified WMI object path. La ruta de acceso se proporciona como cadena.The path is provided as a string.

ManagementObject(String, ObjectGetOptions) ManagementObject(String, ObjectGetOptions) ManagementObject(String, ObjectGetOptions) ManagementObject(String, ObjectGetOptions)

Inicializa una nueva instancia de la clase ManagementObject enlazada a la ruta de acceso WMI especificada, incluidas las opciones adicionales especificadas.Initializes a new instance of the ManagementObject class bound to the specified WMI path, including the specified additional options. En esta variante, la ruta de acceso se puede especificar como cadena.In this variant, the path can be specified as a string.

ManagementObject(String, String, ObjectGetOptions) ManagementObject(String, String, ObjectGetOptions) ManagementObject(String, String, ObjectGetOptions) ManagementObject(String, String, ObjectGetOptions)

Inicializa una nueva instancia de la clase ManagementObject enlazada a la ruta de acceso WMI especificada, y se incluyen las opciones especificadas.Initializes a new instance of the ManagementObject class bound to the specified WMI path, and includes the specified options. El ámbito y la ruta de acceso se especifican como cadenas.The scope and the path are specified as strings.

Propiedades

CanRaiseEvents CanRaiseEvents CanRaiseEvents CanRaiseEvents

Obtiene un valor que indica si el componente puede generar un evento.Gets a value indicating whether the component can raise an event.

(Inherited from Component)
ClassPath ClassPath ClassPath ClassPath

Obtiene o establece la ruta de acceso a la clase del objeto.Gets or sets the path to the object's class.

Container Container Container Container

Obtiene IContainer que contiene Component.Gets the IContainer that contains the Component.

(Inherited from Component)
DesignMode DesignMode DesignMode DesignMode

Obtiene un valor que indica si Component está actualmente en modo de diseño.Gets a value that indicates whether the Component is currently in design mode.

(Inherited from Component)
Events Events Events Events

Obtiene la lista de controladores de eventos asociados a Component.Gets the list of event handlers that are attached to this Component.

(Inherited from Component)
Item[String] Item[String] Item[String] Item[String]

Obtiene el acceso a los valores de propiedad mediante la notación [].Gets access to property values through [] notation. Esta propiedad es el indizador de la clase ManagementBaseObject.This property is the indexer for the ManagementBaseObject class. Se pueden utilizar las propiedades indizadas predeterminadas definidas por un tipo, pero no se pueden definir explícitamente propiedades personalizadas.You can use the default indexed properties defined by a type, but you cannot explicitly define your own. Sin embargo, si se especifica el atributo expando en una clase, se proporciona automáticamente una propiedad indizada predeterminada cuyo tipo es Object y cuyo tipo de índice es String.However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.

(Inherited from ManagementBaseObject)
Options Options Options Options

Obtiene o establece información adicional que se utilizará al recuperar el objeto.Gets or sets additional information to use when retrieving the object.

Path Path Path Path

Obtiene o establece la ruta de acceso WMI del objeto.Gets or sets the object's WMI path.

Properties Properties Properties Properties

Obtiene una colección de objetos PropertyData que describen las propiedades del objeto de administración.Gets a collection of PropertyData objects describing the properties of the management object.

(Inherited from ManagementBaseObject)
Qualifiers Qualifiers Qualifiers Qualifiers

Obtiene la colección de objetos QualifierData definidos en el objeto de administración.Gets the collection of QualifierData objects defined on the management object. Cada elemento de la colección contiene información como el nombre, el valor y el modo del calificador.Each element in the collection holds information such as the qualifier name, value, and flavor.

(Inherited from ManagementBaseObject)
Scope Scope Scope Scope

Obtiene o establece el ámbito en que reside este objeto.Gets or sets the scope in which this object resides.

Site Site Site Site

Obtiene o establece el ISite de Component.Gets or sets the ISite of the Component.

(Inherited from Component)
SystemProperties SystemProperties SystemProperties SystemProperties

Obtiene la colección de propiedades del sistema WMI correspondientes al objeto de administración (por ejemplo, nombre de clase, servidor y espacio de nombres).Gets the collection of WMI system properties of the management object (for example, the class name, server, and namespace). Los nombres de la propiedad del sistema WMI empiezan por "".WMI system property names begin with "".

(Inherited from ManagementBaseObject)

Métodos

Clone() Clone() Clone() Clone()

Crea una copia del objeto.Creates a copy of the object.

CompareTo(ManagementBaseObject, ComparisonSettings) CompareTo(ManagementBaseObject, ComparisonSettings) CompareTo(ManagementBaseObject, ComparisonSettings) CompareTo(ManagementBaseObject, ComparisonSettings)

Compara este objeto con otro, basándose en las opciones especificadas.Compares this object to another, based on specified options.

(Inherited from ManagementBaseObject)
CopyTo(ManagementOperationObserver, ManagementPath) CopyTo(ManagementOperationObserver, ManagementPath) CopyTo(ManagementOperationObserver, ManagementPath) CopyTo(ManagementOperationObserver, ManagementPath)

Copia el objeto en un lugar diferente, asincrónicamente.Copies the object to a different location, asynchronously.

CopyTo(ManagementOperationObserver, ManagementPath, PutOptions) CopyTo(ManagementOperationObserver, ManagementPath, PutOptions) CopyTo(ManagementOperationObserver, ManagementPath, PutOptions) CopyTo(ManagementOperationObserver, ManagementPath, PutOptions)

Copia el objeto en un lugar diferente, asincrónicamente.Copies the object to a different location, asynchronously.

CopyTo(ManagementOperationObserver, String) CopyTo(ManagementOperationObserver, String) CopyTo(ManagementOperationObserver, String) CopyTo(ManagementOperationObserver, String)

Copia el objeto en un lugar diferente, asincrónicamente.Copies the object to a different location, asynchronously.

CopyTo(ManagementOperationObserver, String, PutOptions) CopyTo(ManagementOperationObserver, String, PutOptions) CopyTo(ManagementOperationObserver, String, PutOptions) CopyTo(ManagementOperationObserver, String, PutOptions)

Copia el objeto en un lugar diferente, asincrónicamente.Copies the object to a different location, asynchronously.

CopyTo(ManagementPath) CopyTo(ManagementPath) CopyTo(ManagementPath) CopyTo(ManagementPath)

Copia el objeto en un lugar diferente.Copies the object to a different location.

CopyTo(ManagementPath, PutOptions) CopyTo(ManagementPath, PutOptions) CopyTo(ManagementPath, PutOptions) CopyTo(ManagementPath, PutOptions)

Copia el objeto en un lugar diferente.Copies the object to a different location.

CopyTo(String) CopyTo(String) CopyTo(String) CopyTo(String)

Copia el objeto en un lugar diferente.Copies the object to a different location.

CopyTo(String, PutOptions) CopyTo(String, PutOptions) CopyTo(String, PutOptions) CopyTo(String, PutOptions)

Copia el objeto en un lugar diferente.Copies the object to a different location.

CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type)

Crea un objeto que contiene toda la información relevante necesaria para generar un proxy utilizado para comunicarse con un objeto remoto.Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
Delete() Delete() Delete() Delete()

Elimina el objeto.Deletes the object.

Delete(DeleteOptions) Delete(DeleteOptions) Delete(DeleteOptions) Delete(DeleteOptions)

Elimina el objeto.Deletes the object.

Delete(ManagementOperationObserver) Delete(ManagementOperationObserver) Delete(ManagementOperationObserver) Delete(ManagementOperationObserver)

Elimina el objeto.Deletes the object.

Delete(ManagementOperationObserver, DeleteOptions) Delete(ManagementOperationObserver, DeleteOptions) Delete(ManagementOperationObserver, DeleteOptions) Delete(ManagementOperationObserver, DeleteOptions)

Elimina el objeto.Deletes the object.

Dispose() Dispose() Dispose() Dispose()

Libera todos los recursos utilizados por el componente.Releases all resources used by the Component.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Libera los recursos no administrados que usa Component y, de forma opcional, libera los recursos administrados.Releases the unmanaged resources used by the Component and optionally releases the managed resources.

(Inherited from Component)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Compara dos objetos de administración.Compares two management objects.

(Inherited from ManagementBaseObject)
Get() Get() Get() Get()

Enlaza información de clase WMI al objeto de administración.Binds WMI class information to the management object.

Get(ManagementOperationObserver) Get(ManagementOperationObserver) Get(ManagementOperationObserver) Get(ManagementOperationObserver)

Se enlaza al objeto de administración asincrónicamente.Binds to the management object asynchronously.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Sirve como función hash para un tipo concreto, y se puede usar en algoritmos hash y estructuras de datos, como las tablas hash.Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

(Inherited from ManagementBaseObject)
GetLifetimeService() GetLifetimeService() GetLifetimeService() GetLifetimeService()

Recupera el objeto de servicio de duración actual que controla la directiva de duración de esta instancia.Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetMethodParameters(String) GetMethodParameters(String) GetMethodParameters(String) GetMethodParameters(String)

Devuelve un ManagementBaseObject que representa la lista de parámetros de entrada de un método.Returns a ManagementBaseObject representing the list of input parameters for a method.

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

Llena un SerializationInfo con los datos necesarios para deserializar el campo representado por esta instancia.Populates a SerializationInfo with the data necessary to deserialize the field represented by this instance.

GetPropertyQualifierValue(String, String) GetPropertyQualifierValue(String, String) GetPropertyQualifierValue(String, String) GetPropertyQualifierValue(String, String)

Devuelve el valor del calificador de propiedad especificado.Returns the value of the specified property qualifier.

(Inherited from ManagementBaseObject)
GetPropertyValue(String) GetPropertyValue(String) GetPropertyValue(String) GetPropertyValue(String)

Obtiene un descriptor de acceso equivalente a un valor de la propiedad.Gets an equivalent accessor to a property's value.

(Inherited from ManagementBaseObject)
GetQualifierValue(String) GetQualifierValue(String) GetQualifierValue(String) GetQualifierValue(String)

Obtiene el valor del calificador especificado.Gets the value of the specified qualifier.

(Inherited from ManagementBaseObject)
GetRelated() GetRelated() GetRelated() GetRelated()

Obtiene una colección de objetos relacionados con el objeto (asociadores).Gets a collection of objects related to the object (associators).

GetRelated(ManagementOperationObserver) GetRelated(ManagementOperationObserver) GetRelated(ManagementOperationObserver) GetRelated(ManagementOperationObserver)

Obtiene una colección de objetos relacionados con el objeto (asociadores) asincrónicamente.Gets a collection of objects related to the object (associators) asynchronously. Esta llamada regresa inmediatamente y, cuando los resultados están disponibles, se llama a un delegado.This call returns immediately, and a delegate is called when the results are available.

GetRelated(ManagementOperationObserver, String) GetRelated(ManagementOperationObserver, String) GetRelated(ManagementOperationObserver, String) GetRelated(ManagementOperationObserver, String)

Obtiene una colección de objetos relacionados con el objeto (asociadores).Gets a collection of objects related to the object (associators).

GetRelated(ManagementOperationObserver, String, String, String, String, String, String, Boolean, EnumerationOptions) GetRelated(ManagementOperationObserver, String, String, String, String, String, String, Boolean, EnumerationOptions) GetRelated(ManagementOperationObserver, String, String, String, String, String, String, Boolean, EnumerationOptions) GetRelated(ManagementOperationObserver, String, String, String, String, String, String, Boolean, EnumerationOptions)

Obtiene una colección de objetos relacionados con el objeto (asociadores).Gets a collection of objects related to the object (associators).

GetRelated(String) GetRelated(String) GetRelated(String) GetRelated(String)

Obtiene una colección de objetos relacionados con el objeto (asociadores).Gets a collection of objects related to the object (associators).

GetRelated(String, String, String, String, String, String, Boolean, EnumerationOptions) GetRelated(String, String, String, String, String, String, Boolean, EnumerationOptions) GetRelated(String, String, String, String, String, String, Boolean, EnumerationOptions) GetRelated(String, String, String, String, String, String, Boolean, EnumerationOptions)

Obtiene una colección de objetos relacionados con el objeto (asociadores).Gets a collection of objects related to the object (associators).

GetRelationships() GetRelationships() GetRelationships() GetRelationships()

Obtiene una colección de asociaciones para el objeto.Gets a collection of associations to the object.

GetRelationships(ManagementOperationObserver) GetRelationships(ManagementOperationObserver) GetRelationships(ManagementOperationObserver) GetRelationships(ManagementOperationObserver)

Obtiene una colección de asociaciones para el objeto.Gets a collection of associations to the object.

GetRelationships(ManagementOperationObserver, String) GetRelationships(ManagementOperationObserver, String) GetRelationships(ManagementOperationObserver, String) GetRelationships(ManagementOperationObserver, String)

Obtiene una colección de asociaciones para el objeto.Gets a collection of associations to the object.

GetRelationships(ManagementOperationObserver, String, String, String, Boolean, EnumerationOptions) GetRelationships(ManagementOperationObserver, String, String, String, Boolean, EnumerationOptions) GetRelationships(ManagementOperationObserver, String, String, String, Boolean, EnumerationOptions) GetRelationships(ManagementOperationObserver, String, String, String, Boolean, EnumerationOptions)

Obtiene una colección de asociaciones para el objeto.Gets a collection of associations to the object.

GetRelationships(String) GetRelationships(String) GetRelationships(String) GetRelationships(String)

Obtiene una colección de asociaciones para el objeto.Gets a collection of associations to the object.

GetRelationships(String, String, String, Boolean, EnumerationOptions) GetRelationships(String, String, String, Boolean, EnumerationOptions) GetRelationships(String, String, String, Boolean, EnumerationOptions) GetRelationships(String, String, String, Boolean, EnumerationOptions)

Obtiene una colección de asociaciones para el objeto.Gets a collection of associations to the object.

GetService(Type) GetService(Type) GetService(Type) GetService(Type)

Devuelve un objeto que representa el servicio suministrado por Component o por Container.Returns an object that represents a service provided by the Component or by its Container.

(Inherited from Component)
GetText(TextFormat) GetText(TextFormat) GetText(TextFormat) GetText(TextFormat)

Devuelve una representación textual del objeto en el formato especificado.Returns a textual representation of the object in the specified format.

(Inherited from ManagementBaseObject)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService()

Obtiene un objeto de servicio de duración para controlar la directiva de duración de esta instancia.Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
InvokeMethod(ManagementOperationObserver, String, ManagementBaseObject, InvokeMethodOptions) InvokeMethod(ManagementOperationObserver, String, ManagementBaseObject, InvokeMethodOptions) InvokeMethod(ManagementOperationObserver, String, ManagementBaseObject, InvokeMethodOptions) InvokeMethod(ManagementOperationObserver, String, ManagementBaseObject, InvokeMethodOptions)

Invoca un método en el objeto, asincrónicamente.Invokes a method on the object, asynchronously.

InvokeMethod(ManagementOperationObserver, String, Object[]) InvokeMethod(ManagementOperationObserver, String, Object[]) InvokeMethod(ManagementOperationObserver, String, Object[]) InvokeMethod(ManagementOperationObserver, String, Object[])

Invoca un método en el objeto, asincrónicamente.Invokes a method on the object, asynchronously.

InvokeMethod(String, ManagementBaseObject, InvokeMethodOptions) InvokeMethod(String, ManagementBaseObject, InvokeMethodOptions) InvokeMethod(String, ManagementBaseObject, InvokeMethodOptions) InvokeMethod(String, ManagementBaseObject, InvokeMethodOptions)

Invoca un método en el objeto WMI.Invokes a method on the WMI object. Los parámetros de entrada y salida se representan como objetos ManagementBaseObject.The input and output parameters are represented as ManagementBaseObject objects.

InvokeMethod(String, Object[]) InvokeMethod(String, Object[]) InvokeMethod(String, Object[]) InvokeMethod(String, Object[])

Invoca un método en el objeto.Invokes a method on the object.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

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

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

(Inherited from MarshalByRefObject)
Put() Put() Put() Put()

Confirma los cambios realizados en el objeto.Commits the changes to the object.

Put(ManagementOperationObserver) Put(ManagementOperationObserver) Put(ManagementOperationObserver) Put(ManagementOperationObserver)

Confirma los cambios realizados en el objeto, asincrónicamente.Commits the changes to the object, asynchronously.

Put(ManagementOperationObserver, PutOptions) Put(ManagementOperationObserver, PutOptions) Put(ManagementOperationObserver, PutOptions) Put(ManagementOperationObserver, PutOptions)

Confirma los cambios realizados en el objeto asincrónicamente y utilizando las opciones especificadas.Commits the changes to the object asynchronously and using the specified options.

Put(PutOptions) Put(PutOptions) Put(PutOptions) Put(PutOptions)

Confirma los cambios realizados en el objeto.Commits the changes to the object.

SetPropertyQualifierValue(String, String, Object) SetPropertyQualifierValue(String, String, Object) SetPropertyQualifierValue(String, String, Object) SetPropertyQualifierValue(String, String, Object)

Establece el valor del calificador de propiedad especificado.Sets the value of the specified property qualifier.

(Inherited from ManagementBaseObject)
SetPropertyValue(String, Object) SetPropertyValue(String, Object) SetPropertyValue(String, Object) SetPropertyValue(String, Object)

Establece el valor de la propiedad con nombre.Sets the value of the named property.

(Inherited from ManagementBaseObject)
SetQualifierValue(String, Object) SetQualifierValue(String, Object) SetQualifierValue(String, Object) SetQualifierValue(String, Object)

Establece el valor del calificador con nombre.Sets the value of the named qualifier.

(Inherited from ManagementBaseObject)
ToString() ToString() ToString() ToString()

Devuelve la ruta de acceso completa del objeto.Returns the full path of the object. Se trata de un reemplazo de la implementación predeterminada del objeto.This is an override of the default object implementation.

Eventos

Disposed Disposed Disposed Disposed

Se produce cuando el componente se elimina mediante una llamada al método Dispose().Occurs when the component is disposed by a call to the Dispose() method.

(Inherited from Component)

Implementaciones de interfaz explícitas

ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext)

Implementa la interfaz de ISerializable y devuelve los datos necesarios para serializar ManagementBaseObject.Implements the ISerializable interface and returns the data needed to serialize the ManagementBaseObject.

(Inherited from ManagementBaseObject)

Se aplica a