Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of a WmiDataReader with the specified connection.
 /// </summary>
 internal WmiDataReader(WmiConnection connection)
 {
     _connection = connection;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Releases resources used by the reader.
 /// </summary>
 public void Dispose()
 {
     _connection = null;
 }
Exemplo 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;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Closes the reader.
 /// </summary>
 public void Close()
 {
     _connection = null;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the command.
 /// </summary>
 public WmiCommand(string commandText, WmiConnection connection)
 {
     _query      = commandText;
     _connection = connection;
 }