Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of a WmiDataReader with the specified connection.
 /// </summary>
 internal WmiDataReader(WmiConnection connection)
 {
     _connection = connection;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Releases resources used by the reader.
 /// </summary>
 public void Dispose()
 {
     _connection = null;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Creates an instance of the adapter with the values specified.
 /// </summary>
 public WmiDataAdapter(WmiCommand selectCommand, WmiConnection connection)
 {
     _select            = selectCommand;
     _select.Connection = connection;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Closes the reader.
 /// </summary>
 public void Close()
 {
     _connection = null;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the command.
 /// </summary>
 public WmiCommand(string commandText, WmiConnection connection)
 {
     _query      = commandText;
     _connection = connection;
 }