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